Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
BSON_DECIMAL12...OM_STRING_W_LEN(3) libbsonBSON_DECIMAL12...OM_STRING_W_LEN(3)

SYNOPSIS
	  bool
	  bson_decimal128_from_string_w_len (const char	*string,
					     int len,
					     bson_decimal128_t *dec);

PARAMETERS
        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.

DESCRIPTION
       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.

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

AUTHOR
       MongoDB,	Inc

COPYRIGHT
       2009-present, MongoDB, Inc.

1.30.2				 Apr 12, 20BSON_DECIMAL12...OM_STRING_W_LEN(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=bson_decimal128_from_string_w_len&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help