function ForDight(Dight,How){
var Dight = Math.round (Dight*Math.pow(10,How))/Math.pow(10,How);
return Dight;
}
//ForDight(Dight,How):数值格式化函数;
//Dight:要格式化的 数字;
//How::要保留的小数位数。
js数值的格式化函数
最新推荐文章于 2019-06-18 14:28:57 发布
function ForDight(Dight,How){
var Dight = Math.round (Dight*Math.pow(10,How))/Math.pow(10,How);
return Dight;
}
//ForDight(Dight,How):数值格式化函数;
//Dight:要格式化的 数字;
//How::要保留的小数位数。