Add a new BSON type for decimal numbers in MongoDB 3.4. This type will use the decimal128 format as defined by the IEEE 754 standard and support up to 34 decimal digits and a range from -9.999999999999999999999999999999999×10^6144 to +9.999999999999999999999999999999999×10^6144.
Decimal values will be treated like any other numeric type, and compare and sort correctly with other types based on actual numeric value. Operations on decimals are implemented in accordance with the standard, so a value of 0.10 will retain its trailing zeros while comparing equal to 0.1, 0.10000 etc.
Original description: Please consider adding support for arbitrary-precision numbers. A lot of applications consider precision as a mission critical component and lack of support for high precision numbers makes it impossible to use MongoDB.
- depends on
-
SERVER-19703 Add keystring and indexing support for experimental decimal data type
- Closed
-
SERVER-19735 Add aggregation support for experimental decimal data type
- Closed
- is depended on by
-
CSHARP-1594 Add support for Decimal128 BSON type
- Closed
-
DRIVERS-288 Decimal 128 type support
- Closed
-
JAVA-2140 Add support for Decimal128 BSON type
- Closed
- is related to
-
SERVER-19624 Add experimental Decimal128 data type support to mongo/bson layer
- Closed
- related to
-
SERVER-4996 Add unsigned 64 bit integer as supported datatype
- Closed