BsonExtensionMethods.ToJson() lost precision with floating pointer numbers

XMLWordPrintableJSON

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

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

      output:

      "{ \"price\" : 8.8399999999999999 }"
      

            Assignee:
            Robert Stam
            Reporter:
            qaqz111
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: