特别简单,复制下面的,建一个模块,然后用bround函数就行了,和round用法一样。可以推出末尾数为任何数的修约。Ϩ
°U´`äfðbbs.3c3t.comÐZç
'终极完美的四舍六入五留双的自定义函数代码,其实很简单Ϩ
°U´`äfðbbs.3c3t.comÐZç
Function bround(c#, d%)Ϩ
°U´`äfðbbs.3c3t.comÐZç
bround = VBA.Round(CDec(c), d)Ϩ
°U´`äfðbbs.3c3t.comÐZç
End FunctionϨ
°U´`äfðbbs.3c3t.comÐZç