bson_decimal128_from_string man page

bson_decimal128_from_string() — Parses the string containing ascii encoded decimal128 and initialize the bytes in decimal128.

Synopsis

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

Parameters

string
A string containing ASCII encoded Decimal128.
dec
A bson_decimal128_t

Description

Parses the string containing ascii encoded decimal128 and initialize the bytes in decimal128

Example

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

Colophon

This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.

Info

2016‐11‐12 libbson