Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1938

bson_as_json converts int64 to scientific notation

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.0
    • Affects Version/s: 1.3.5
    • Component/s: json, libbson
    • None
    • Environment:
      Linux

      When trying to retrieve an int64 value using mongoc_collection_find, mongoc_cursor_next, and bson_as_json, I need to see the full value. When I run the code now, it translates my value into scientific notation, which loses precision (e.g., 1479421652125003000 becomes 1.479421652125e+18).

      Is there any way to get the actual value instead of the scientific notation value?

            Assignee:
            Unassigned Unassigned
            Reporter:
            darin.christenson@lmco.com Darin Christenson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: