logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

bool

Author

       MongoDB, Inc

Description

       Parses the string containing ascii encoded Decimal128 and initialize the bytes in dec. See the Decimal128specification for the exact string format.

Example

          bson_decimal128_t dec;
          bson_decimal128_from_string ("1.00", &dec);

Parameters

string: A string containing ASCII encoded Decimal128.

       • dec: A bson_decimal128_t.

Returns

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

Synopsis

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

See Also