相关疑难解决方法(0)

如何在delphi中比较double?

我们面临数据类型双重比较的问题:

if(p > pmax) then
begin
  Showmessage('');
end
Run Code Online (Sandbox Code Playgroud)

如果两个值都是100(p = 100和pmax = 100),那么它也会进入if子句.

delphi types

28
推荐指数
2
解决办法
1万
查看次数

标签 统计

delphi ×1

types ×1