Math.formatFloat = function (f, digit) {
var m = Math.pow(10, digit);
return parseInt(f * m, 10) / m;
}
摘自 http://www.cnblogs.com/fumj/archive/2012/12/01/2797588.html
js精度(摘)
时间: 2024-10-11 22:27:44
Math.formatFloat = function (f, digit) {
var m = Math.pow(10, digit);
return parseInt(f * m, 10) / m;
}
摘自 http://www.cnblogs.com/fumj/archive/2012/12/01/2797588.html
js精度(摘)