1BSON_DECIMAL128_FROM_STRING(3) libbson BSON_DECIMAL128_FROM_STRING(3)
2
3
4
6 bson_decimal128_from_string - bson_decimal128_from_string()
7
9 bool
10 bson_decimal128_from_string (const char *string, bson_decimal128_t *dec);
11
13 • string: A string containing ASCII encoded Decimal128.
14
15 • dec: A bson_decimal128_t.
16
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
23 Returns true if valid Decimal128 string was provided, otherwise false
24 and dec will be set to NaN.
25
27 bson_decimal128_t dec;
28 bson_decimal128_from_string ("1.00", &dec);
29
31 MongoDB, Inc
32
34 2017-present, MongoDB, Inc
35
36
37
38
391.21.1 Mar 02, 2022 BSON_DECIMAL128_FROM_STRING(3)