It looks like SpiderMonkey rounds large integers. To reproduce, create a document in Futon with a field value
Futon will round this to 10000000000000000. Or, create a document with that field value by some other means and then emit the field in a view. The document will have the correct value for the field, but the value in the view will be wrong.