1BSON_DECIMAL128_FROM_STRING(3)      libbson     BSON_DECIMAL128_FROM_STRING(3)
2
3
4

NAME

6       bson_decimal128_from_string - bson_decimal128_from_string()
7

SYNOPSIS

9          bool
10          bson_decimal128_from_string (const char *string, bson_decimal128_t *dec);
11

PARAMETERS

13string: A string containing ASCII encoded Decimal128.
14
15dec: A bson_decimal128_t.
16

DESCRIPTION

18       Parses  the  string  containing ascii encoded Decimal128 and initialize
19       the bytes in dec. See the Decimal128 specification for the exact string
20       format.
21

RETURNS

23       Returns  true  if valid Decimal128 string was provided, otherwise false
24       and dec will be set to NaN.
25

EXAMPLE

27          bson_decimal128_t dec;
28          bson_decimal128_from_string ("1.00", &dec);
29

AUTHOR

31       MongoDB, Inc
32
34       2017-present, MongoDB, Inc
35
36
37
38
391.21.1                           Mar 02, 2022   BSON_DECIMAL128_FROM_STRING(3)
Impressum