如题
var a = 0.56999999 undefined a.toFixed(2) "0.57" 100*(a.toFixed(2)) 56.99999999999999
1.这种情况为什么
2.如何避免这种情况,我要的是100*(a.toFixed(2))得到的整数
德玛西亚99
相关分类