Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
警报语句 alert(parseInt("0x00C02700010004E9",16));错误地显示 54086076498707690 而不是正确的值 54086076498707689。请注意最后两位!
alert(parseInt("0x00C02700010004E9",16));
谁能阐明我做错了什么?
是的!Javascript 不能精确到那么多数字!请参阅:Javascript 中错误四舍五入的大数