json-viewer icon indicating copy to clipboard operation
json-viewer copied to clipboard

JS precision lost

Open threetown opened this issue 1 year ago • 1 comments

input:

{"sid":822106502566256641}

output:

{"sid": 822106502566256600}

How to fix this bug?

threetown avatar Aug 05 '22 08:08 threetown

Not a bug -- js uses ieee doubles for all numbers. Use a string or big number to represent large integers.

c-dante avatar Sep 06 '22 22:09 c-dante