Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2140

Add support for Decimal128 BSON type

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.0
    • Affects Version/s: None
    • Component/s: BSON
    • None

      Add driver support for a new BSON type for decimal numbers, which will be added to MongoDB in version 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. It also supports positive and negative zero, positive and negative infinity, and two forms of NaN (regular and signaled).

      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.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            rathi.gnanasekaran Rathi Gnanasekaran
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: