in reply to Re: Range check with unordered limits
in thread Range check with unordered limits
That would work in most cases. The original code would also work for floating point values, whereas this version would need to change to ... <= 0 to handle that correctly. Under `use integer` it could also give the wrong answer due to overflow. In the general case it would be no faster than the original code, and can be slower.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Range check with unordered limits (updated)
by LanX (Saint) on Jul 11, 2022 at 09:12 UTC |