wohali commented on issue #1372: Numbers in documents get rounded down without 
explaination.
URL: https://github.com/apache/couchdb/issues/1372#issuecomment-394434081
 
 
   This is a limitation of integers in JavaScript/JSON, and is not limited to 
CouchDB. For instance, if I open the console in my Firefox 60.0.1 browser:
   
   ```
   q = 369553424691494913
   369553424691494900
   q
   369553424691494900
   ```
   
   If you want to ensure the number is stored verbatim, store it as a string, 
and perform string-to-long-integer conversion in your application.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to