/**
* description : 浮点小数格式化;
*/
function formatFloat(src, pos) {
if (pos !=0 && !(pos)) {
pos = 2;
}
return Math.round(src*Math.pow(10, pos)) / Math.pow(10, pos);
}
* description : 浮点小数格式化;
*/
function formatFloat(src, pos) {
if (pos !=0 && !(pos)) {
pos = 2;
}
return Math.round(src*Math.pow(10, pos)) / Math.pow(10, pos);
}