3 ms·
> You can convert them from doubles to 32-ints You can use the native BigInt arbitrary-precision integers and ignore all "fits under this arbitrary limited bit
by ElectricalUnion 4y ago
> You can convert them from doubles to 32-ints
You can use the native BigInt arbitrary-precision integers and ignore all "fits under this arbitrary limited bit slice" problems.
You can use doubles as a integer directly, in a safe way, until you touch the 53 bits barrier (Number.MIN_SAFE_INTEGER === -9007199254740991 or Number.MAX_SAFE_INTEGER === 9007199254740991).
None of those really are (modern) webapp issues.