// 将计算得到的结果四舍五入 /**/ /* * ForDight(Dight,How):数值格式化函数,Dight要 * 格式化的 数字,How要保留的小数位数。 */ function ForDight(Dight,How) ... { var Dight = Math.round (Dight*Math.pow(10,How))/Math.pow(10,How); return Dight; }