2 ms·
> 32-bit integers in JS don't have float problems because the precision doesn't break Unless you try multiplying them.
by pbsd 13y ago
> 32-bit integers in JS don't have float problems because the precision doesn't break
Unless you try multiplying them.
- invisible 13y agoAs long as the result is less than 9007199254740992 (9 quadrillion; 2^53). Who uses numbers that large? Regardless of the practicality, you can use a library if you need support for bigger numbers (e.g. crypto's BigInt.js).