Sign-up....

Round函数请教

在网上已经查出VBScript中Round函数的Bug

1.125留两位,则1.12=round(1.125)

如果是1.135,则1.14=round(1.135)

请问可不可以使用formatnumber函数来代替Round函数来作四舍五入的操作?

现在测试formatnumber(1.125,2)跟formatnumber(1.135,2)都是正确的结果

另,formatnumber 函数有没有什么影响?

[215 byte] By [msdn] at [2007-8-15 10:00:22]
# 1 Re: Round函数请教

到底可不可以用formatnumber函数??

给个答案好吗?

unwonted at 2006-5-25 15:23:52 >

Web

All Classified