-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 1.8.1, 2.0.1
-
Component/s: JavaScript, Shell
-
Environment:db.version() 2.0.1 (linux)
db.version() 1.8.1 (win)
-
Fully Compatible
-
Linux
within the javascript shell several NumberLong.bottom, NumberLong.top does not return any value.
s.
NumberLong("5188220513171889152").bottom
while surrounding values seems correct.
NumberLong("5188220513171889151").bottom -> 2147572735
NumberLong("5188220513171889153").bottom -> 2147572737
some more testcases:
NumberLong("5188220483643986944")
NumberLong("5188220484180857856")
NumberLong("5188220484717728768")
NumberLong("5188220485254599680")
NumberLong("5188220486328341504")
NumberLong("5188220486865212416")
NumberLong("5188220487402083328")
NumberLong("5188220487938954240")
NumberLong("5188220513171889152")
NumberLong("5188220517466856448")
NumberLong("5188220518003727360")
NumberLong("5188220518540598272")
NumberLong("5188220787512923136")
NumberLong("5188220788049794048")
NumberLong("5188220871264785408")
NumberLong("5188220871801656320")
- is related to
-
SERVER-14217 Support NumberLong arithmetic in mongo shell and server JS
- Backlog