Hex - Javascript parseInt with radix 16 issue

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

The alert statement alert(parseInt("0x00C02700010004E9",16)); incorrectly displays 54086076498707690 instead of the correct value 54086076498707689. Please notice the last two digits!!

Could anyone shed some light on what am I doing wrong?

Answers

http://stackoverflow.com/questions/1379934/large-numbers-erroneously-rounded-in-javascript http://stackoverflow.com/questions/1379934/large-numbers-erroneously-rounded-in-javascript

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/3472614/javascript-parseint-with-radix-16-issue

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils