Possible Duplicate:
What is JavaScript's Max Int? What's the highest Integer value a Number can go to without losing precision?
What is the maximum integer in javascript? I have a variable that starts in 0 and adds 100 each 0.1 seconds. What is the maximum number it can reach?
BTW, I thought this question had been answered before but I couldn’t find it. If it is answered, please send me a link to it =) thanks!
JavaScript numbers are IEE 794 floating point double-precision values. There’s a 53-bit mantissa (from memory), so that’s pretty much the limit.
Now there are times when JavaScript semantics call for numbers to be cast to a 32-bit integer value, like array indexing and bitwise operators.