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

SYNOPSIS

6          bool
7          bson_decimal128_from_string (const char *string, bson_decimal128_t *dec);
8

PARAMETERS

10string: A string containing ASCII encoded Decimal128.
11
12dec: A bson_decimal128_t.
13

DESCRIPTION

15       Parses  the  string  containing ascii encoded Decimal128 and initialize
16       the bytes in dec. See the Decimal128 specification for the exact string
17       format.
18

RETURNS

20       Returns  true  if valid Decimal128 string was provided, otherwise false
21       and dec will be set to NaN.
22

EXAMPLE

24          bson_decimal128_t dec;
25          bson_decimal128_from_string ("1.00", &dec);
26

AUTHOR

28       MongoDB, Inc
29
31       2017-present, MongoDB, Inc
32
33
34
35
361.25.1                           Nov 08, 2023   BSON_DECIMAL128_FROM_STRING(3)
Impressum