[fpc-devel]MATH.PP

Marco van de Voort marcov at stack.nl
Mon Oct 15 15:52:02 CEST 2001


> small epsilon to compensate for this, but the size of this epsilon 
> depends on the size of the best real type available (for extended = 10 
> bytes, it could be 1.0e-9, but for extended = 8 bytes, it will be 
> bigger).
> 
> > Because then reals are used for the comparision, since in the case
> > of abs(X) > 1 the '1' will probably be interpreted as an integer.
> 
> No, if one operand in an expression is a float, everything will be 
> converted to a float.

See also the numlib sources. They have a lot of those constructs to prevent
such problems. They use epsilon constructs everywhere.




More information about the fpc-devel mailing list