Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-81

mongoexport --csv exports oddly formatted floats

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.8.0-rc0
    • Affects Version/s: Legacy C++ Implementation
    • Component/s: mongoexport

      The CSV format of mongoexport seems to export floats like -0.00002 as "-2e-05.0", a format which is not a valid literal in C, Java, Python, JSON, bc(1), printf(1), and many other tools. This makes it difficult to read in mongo exports in those tools.

      The JSON export outputs the more common format "-2e-05".

            Assignee:
            Unassigned Unassigned
            Reporter:
            jdanger John Danger
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: