bson_decimal128_from_string_w_len3
Parameters
- •
-
string: A string containing ASCII encoded Decimal128.
- •
-
len: The length ofstringin bytes, or -1 meaning the string is null-terminated.
- •
-
dec: A bson_decimal128_t.
Overview
Parses the string containing ascii encoded Decimal128 and initialize the bytes in dec. See the Decimal128 specification for the exact string format.
Returns
Returns true if valid Decimal128 string was provided, otherwise false and dec will be set to NaN.
Examples
bson_decimal128_t dec;
bson_decimal128_from_string_w_len ("1.00", 4, &dec);
bson_decimal128_from_string_w_len ("1.00", -1, &dec);
History
- Debian 13 (Trixie): the text shown here
- Debian 12 (Bookworm)
- Debian 11 (Bullseye)
- Debian 10 (Buster)