Preserve floating-point JSON literals as BSON doubles

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Java Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Fixes an issue where floating-point JSON literals with an integral
      numeric value were encoded as integer BSON types.

      For example, 3.0 was previously encoded as INT32 because trailing
      zeros were stripped before determining the BSON numeric type.

      https://github.com/mongodb/mongo-java-driver/pull/2033

            Assignee:
            Ross Lawley
            Reporter:
            Andre Masella
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: