f$Epsilon
f$Epsilon
Set or read numerical precision, e.g. for comparison operations on floating values. The condition
Number1 == Number2 |
is realized internally as
Number1 < Number2 + Epsilon AND Number1 > Number2 - Epsilon |
The standard system default setting is 1E-8.
Syntax: | NewDelta = f$Epsilon( [Delta] ) | ||
| Argument | Type | Meaning |
| Delta | Decimal | New numerical precision value (can be omitted) |
Result: | Decimal | Numerical precision currently set | |
Example: | Read current setting: Set new value: | ||