Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-5648

NumberLong and NumberInt documentation

    XMLWordPrintableJSON

Details

    Description

      See http://docs.mongodb.org/manual/reference/mongodb-extended-json/#numberlong.

      Specifically, we state, "NumberLong is a 64 bit signed integer. You must include quotation marks or it will be interpreted as a floating point number, resulting in a loss of accuracy.".

      mongoimport will currently treat both the quoted and unquoted forms the same - they will be imported as expected - and will not cause the unquoted form to be treated as a floating point number.

      So the documentation http://docs.mongodb.org/manual/reference/mongodb-extended-json/#input-in-mongo-shell-mode, while true, leads to different behavior in the tools vs the mongo shell.

      Attachments

        Activity

          People

            andrew.aldridge@mongodb.com Andrew Aldridge
            adinoyi.omuya@mongodb.com Adinoyi Omuya
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 14 weeks, 1 day ago