在精度允许范围内加上一点点,比如round(2.5+0.00001),结果就是3啦private function RoundEx(byval dVal as Variant,optional byval lLen as long=0) as doubleif isnumeric(dVal) thenif val(dVal)<0 thenRoundEx=round(val(dVal)-0.00000000000001,lLen)elseif val(dVal)>0 thenRoundEx=round(val(dVal)+0.00000000000001,lLen)elseRoundEx=0end ifend ifend function