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

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Index Maintenance, Querying
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      > 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
      

            Assignee:
            Unassigned
            Reporter:
            Aaron Staple (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: