JavaScript converts a large INT to scientific notation when the number becomes large. How can I prevent this from happening?
Use .toPrecision, .toFixed, etc. You can count the number of digits in your number by converting it to a string with .toString then looking at its .length.
.toPrecision
.toFixed
.toString
.length