Javascript parseInt with radix 16 release

Alert operator alert(parseInt("0x00C02700010004E9",16)); incorrectly displays 54086076498707690 instead of the correct value 54086076498707689. Pay attention to the last two digits!

Can anyone shed light on what I'm doing wrong?

+4
source share
1 answer

Yes! Javascript is not accurate for many numbers! See: Large numbers mistakenly rounded in Javascript

+4
source

All Articles