发信人: dongbao()
整理人: (2000-09-22 17:19:38), 站内信件
|
同vbscript的Round函数功能相同,四舍五入保留指定小数位数
function Round(a_Num , a_Bit)
{
return( Math.round(a_Num * Math.pow (10 , a_Bit)) / Math.pow(10 , a_Bit)) ;
}
-- ICQ:43395237 OICQ:126132
我自豪我用正版,我骄傲我用盗版!!!
※ 来源:.月光程序代码网 http://www.moon-soft.com.[FROM: 202.108.5.134]
|
|