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

Incorrect behavioral description in $convert Converting to a Double section for Boolean

    XMLWordPrintableJSON

Details

    Description

      Description

      The Behavior for converting a boolean to a double in the "Converting to a Double" section of $convert is incorrect. It says

      Returns NumberLong(0) for false.

      Return NumberLong(1) for true.

      It should say NumberDouble in both cases instead of NumberLong.

      This is a minor typo and practically doesn't matter since numeric types are all mutually comparable in agg. However, it is still worth addressing at some point.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Activity

          People

            jocelyn.mendez@mongodb.com Jocelyn Mendez
            matthew.chiaravalloti@mongodb.com Matthew Chiaravalloti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              2 years, 15 weeks, 6 days ago