8 ms·
64 bit ints are a thing in JS for a while now
by zachrip 11mo ago
64 bit ints are a thing in JS for a while now
- marcus_cemes 11mo agoNo, they aren't. You have to use BigInt, which will throw an error if you try to serialise it to JSON or combine it with ordinary numbers. If you happen to need to deserialise a 64-bit integer from JSON, which I sadly had to do, you need a custom parser to construct the BigInt from a raw string directly.
- deleted 11mo ago[deleted]