mongoexport --csv exports oddly formatted floats

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: 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
            Reporter:
            John Danger
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: