Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-3714

nan doubles are matched as if they are equal to each other, but they are not considered equal outside our matching system

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Index Maintenance, Querying
    • None

    Description

      > c.drop();
      true
      > c.save( {a:0/0} );
      > c.findOne( {a:0/0} )
      { "_id" : ObjectId("4e5c0743d1f8b3987d09b7fd"), "a" : NaN }
      > c.findOne( {a:0/0} ).a == 0/0
      false
      > c.findOne( {a:{$ne:0/0}} )
      null

      Attachments

        Activity

          People

            Unassigned Unassigned
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: