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

Same version of mongoexport produces different output on different platforms

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

      I have two different platforms, first is Ubuntu 14.04 (Linux ubuntu 3.13.0-34-generic) and second is Windows 7 64bit (using MINGW32_NT-6.1).
      When I run the following commands I get different results:

      echo '{ "foo" : 89.49800000000001 }' | mongoimport --db test --collection test --drop
      mongoexport --db test --collection test
      

      The output on Linux is:

      { "_id" : { "$oid" : "53f1b91087afee0b6c741b72" }, "foo" : 89.498 }
      

      When the output on windows is:

      { "_id" : { "$oid" : "53f1befa0aae1b304dae7e2a" }, "foo" : 89.4980000000001 }
      

            Assignee:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Reporter:
            mr_table Dmitry Yantsen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: