new Decimal128(bytes){Double}
A class representation of the BSON Decimal128 type.
Name | Type | Description |
---|---|---|
bytes |
Buffer |
a buffer containing the raw Decimal128 bytes. |
Methods
-
toString(){string}
-
Create a string representation of the raw Decimal128 value
Returns:
a Decimal128 string representation.
-
staticDecimal128.fromString(string){Decimal128}
-
Create a Decimal128 instance from a string representation
Name Type Description string
string a numeric string representation.
Returns:
a Decimal128 instance.