Panossa opened a new issue #1372: Numbers in documents get rounded down without 
explaination.
URL: https://github.com/apache/couchdb/issues/1372
 
 
   I don't know whether it's a feature or a bug. But if it's meant to be this 
way it's not obvious why and I never saw anyone writing about this:
   When I save the following document:
   {"server_id": 369553424691494913}
   
   ## Expected Behavior
   I expect when I open up the document (after saving it) in Futon or I'm 
getting it via GET I get this:
   {"server_id": 369553424691494913}
   
   ## Current Behavior
   Response:
   {"server_id": 369553424691494900} //btw it rounds down on 1-2 decimals every 
time, not only with this number
   
   ## Possible Solution
   Either showing a warning about precision or save it the right way.
   
   ## Steps to Reproduce (for bugs)
   1. Saving e.g. the document {"server_id": 369553424691494900}
   2. GETting it.
   
   ## Context
   I'm saving server ids in the database as numbers so I can use them without 
converting them back from strings to numbers.
   
   ## Your Environment
   * Version used: 2.1.1
   * Browser Name and version: Chrome Canary 69.0.3448.0 (64 bit)
   * Operating System and version (desktop or mobile): Win7 64bit Home Pr.
   

----------------------------------------------------------------
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