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

Support decimal numbers

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.8
    • Component/s: Usability
    • Labels:
    • Backwards Compatibility:
      Major Change
    • Sprint:
      Integrate+Tuning 16 (06/24/16)
    • Case:

      Description

      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.

        Attachments

          Issue Links

            Activity

              Dates

              • Created:
                Updated:
                Resolved: