Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1969

BsonExtensionMethods.ToJson() lost precision with floating pointer numbers

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.3
    • Component/s: BSON
    • Environment:
      .NetFX

      BsonDocument.Parse("{\"price\":8.84}").ToJson()
      

      output:

      "{ \"price\" : 8.8399999999999999 }"
      

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            qaqz111 qaqz111
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: