var
r:real;
begin
r:=68.667;
if r<>68.667 then
showmessage('aaaaaa')
end;
上面代码中r和68.667为什么不相等呢。我也试过用format,
r=strtofloat(format('%1.3f',[r]));
可是还是r和68.667还是不等,为什么呢,怎么解决。谢谢各位
...全文
244打赏收藏
简单问题,各位给看看,谢谢
var r:real; begin r:=68.667; if r68.667 then showmessage('aaaaaa') end; 上面代码中r和68.667为什么不相等呢。我也试过用format, r=strtofloat(format('%1.3f',[r])); 可是还是r和68.667还是不等,为什么呢,怎么解决。谢谢各位