Y
ybbqy
Unregistered / Unconfirmed
GUEST, unregistred user!
var
f:double;
begin
f:=10100.1;
showmessage(floattostr(f-trunc(f)));
end;
为我预期的结果应该是0.1,而实际是0.100000000000364,为什么啊?
f:double;
begin
f:=10100.1;
showmessage(floattostr(f-trunc(f)));
end;
为我预期的结果应该是0.1,而实际是0.100000000000364,为什么啊?