Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-792

Reduce floating point precision required of extended json implementations

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None
    • Labels:
      None
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      MOTOR-493 Works as Designed
      JAVA-3601 Fixed 4.1.0
      PYTHON-2105 Duplicate
      RUBY-2098 Duplicate
      CDRIVER-3500 Backlog
      PHPC-1536 Blocked
      NODE-2431 Fixed 3.6.0
      CSHARP-2911 Backlog
      CXX-1913 Backlog
      GODRIVER-1471 Fixed 1.5.0
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion MOTOR-493 Works as Designed JAVA-3601 Fixed 4.1.0 PYTHON-2105 Duplicate RUBY-2098 Duplicate CDRIVER-3500 Backlog PHPC-1536 Blocked NODE-2431 Fixed 3.6.0 CSHARP-2911 Backlog CXX-1913 Backlog GODRIVER-1471 Fixed 1.5.0

      BSON corpus contains a test which attempts to round-trip the value 1.23456789012345677E+18. This value contains more precision than Ruby and Python interpreters support:

      irb(main):001:0> 1.23456789012345677E+18
      => 1.2345678901234568e+18
      
      >>> 1.23456789012345677E+18
      1.2345678901234568e+18
      

      As a result, Python and Ruby bson implementation need to change this test to use the less precise value.

      shane.harvey

            Assignee:
            Unassigned Unassigned
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: