Prevent JavaScript Number function from rounding big numbers

JavaScript numbers are Double Precision Floats; the largest integer that can be precisely stored is 2^53 (9007199254740992).
If you actually need it in a number you have some fun math ahead of you, or you can use a library such as big.js

Leave a Comment