BSON::Decimal128
Inherits Struct / Value / Object
128-bit decimal floating point.
NOTE: This implementation has been mostly ported from https://github.com/mongodb/bson-ruby/blob/master/lib/bson/decimal128.rb.
Performance is bad because it relies on a string representation of the value.
See: https://github.com/mongodb/specifications/blob/master/source/bson-decimal128/decimal128.rst
Constants
Exponent offset.
Infinity mask.
Regex matching a string representing positive or negative Infinity.
String representing an Infinity value.
Maximum digits of precision.
Maximum exponent.
Minimum exponent.
NaN mask.
Regex matching a string representing NaN.
String representing a NaN value.
Regex matching a scientific exponent.
Regex for separating a negative sign from the significands.
Signed bit mask.
Regex for the fraction, including leading zeros.
SNaN mask.
Regex for capturing trailing zeros.
The two highest bits of the 64 high order bits.
Regex for a valid decimal128 string format.
Constructors
Convert parts representing a Decimal128 into the corresponding bits.
Instance methods
Serialize to a canonical extended json representation.
NOTE: see https://github.com/mongodb/specifications/blob/master/source/extended-json.rst