特别简单,复制下面的,建一个模块,然后用bround函数就行了,和round用法一样。可以推出末尾数为任何数的修约。ÏÎÃûãÏbbs.3c3t.comulbk¶V
'终极完美的四舍六入五留双的自定义函数代码,其实很简单ÏÎÃûãÏbbs.3c3t.comulbk¶V
Function bround(c#, d%)ÏÎÃûãÏbbs.3c3t.comulbk¶V
bround = VBA.Round(CDec(c), d)ÏÎÃûãÏbbs.3c3t.comulbk¶V
End FunctionÏÎÃûãÏbbs.3c3t.comulbk¶V