1BSON_DECIMAL128_FROM_STRING(3) libbson BSON_DECIMAL128_FROM_STRING(3)
2
3
4
6 bool
7 bson_decimal128_from_string (const char *string, bson_decimal128_t *dec);
8
10 • string: A string containing ASCII encoded Decimal128.
11
12 • dec: A bson_decimal128_t.
13
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
20 Returns true if valid Decimal128 string was provided, otherwise false
21 and dec will be set to NaN.
22
24 bson_decimal128_t dec;
25 bson_decimal128_from_string ("1.00", &dec);
26
28 MongoDB, Inc
29
31 2017-present, MongoDB, Inc
32
33
34
35
361.25.1 Nov 08, 2023 BSON_DECIMAL128_FROM_STRING(3)