Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1393

Support decimal numbers

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.8
    • Affects Version/s: None
    • Component/s: Usability
    • Major Change
    • Integrate+Tuning 16 (06/24/16)

      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.

            Created:
            Updated:
            Resolved: