U
usa112233
Unregistered / Unconfirmed
GUEST, unregistred user!
在delphi6中,想保留小数点后2位数字,4舍5入的函数是什么?我用了RoundTo和SimpleRoundTo两个函数都有问题。
a:=27686.745
b:=38222.295
RoundTo(a):=27686.74,应为27686.75
SimpleRoundTo(b):=38222.29应为38222.30
a:=27686.745
b:=38222.295
RoundTo(a):=27686.74,应为27686.75
SimpleRoundTo(b):=38222.29应为38222.30