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-12-20 01:06:04
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精度(摘)