GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
BSON_DECIMAL128_FROM_STRING_W_LEN(3) libbson BSON_DECIMAL128_FROM_STRING_W_LEN(3)

bool
bson_decimal128_from_string_w_len (const char *string,

int len,
bson_decimal128_t *dec);


  • string: A string containing ASCII encoded Decimal128.
  • len: The length of string in bytes, or -1 meaning the string is null-terminated.
  • dec: A bson_decimal128_t.

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

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

bson_decimal128_t dec;
bson_decimal128_from_string_w_len ("1.00", 4, &dec);
bson_decimal128_from_string_w_len ("1.00", -1, &dec);


MongoDB, Inc

2009-present, MongoDB, Inc.

July 3, 2025 1.30.4

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.