Math.round((34.99/2)*100)/100
17.9997
精度丢失
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/221329.html原文链接:https://javaforall.net
js保留2位小数Math round 34 99 2 100 10017 9997 精度丢失
Math.round((34.99/2)*100)/100
17.9997
精度丢失
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/221329.html原文链接:https://javaforall.net