1BSON_DECIMAL128_FROM_STRING_W_LEN(3)libbsonBSON_DECIMAL128_FROM_STRING_W_LEN(3)
2
3
4

SYNOPSIS

6          bool
7          bson_decimal128_from_string_w_len (const char *string,
8                                             int len,
9                                             bson_decimal128_t *dec);
10

PARAMETERS

12string: A string containing ASCII encoded Decimal128.
13
14len:  The  length  of  string  in  bytes, or -1 meaning the string is
15         null-terminated.
16
17dec: A bson_decimal128_t.
18

DESCRIPTION

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

RETURNS

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

EXAMPLE

29          bson_decimal128_t dec;
30          bson_decimal128_from_string_w_len ("1.00", 4, &dec);
31          bson_decimal128_from_string_w_len ("1.00", -1, &dec);
32

AUTHOR

34       MongoDB, Inc
35
37       2017-present, MongoDB, Inc
38
39
40
41
421.25.1                           Nov 08, 20B2S3ON_DECIMAL128_FROM_STRING_W_LEN(3)
Impressum