parseInt rounds incorrectly

MoeB

New Member
I stumbled upon this issue with \[code\]parseInt\[/code\] and I'm not sure why this is happening.\[code\]console.log(parseInt("16980884512690999")); // gives 16980884512691000console.log(parseInt("169808845126909101"));? // gives 169808845126909100\[/code\]I clearly not hitting any number limits in JavaScript limits (\[code\]Number.MAX_VALUE = http://stackoverflow.com/questions/9297434/1.7976931348623157e+308\[/code\])Running Win 7 64 bit if that matters.What am I overlooking?Fiddle
 
Top