In our previous episode, Werner Pamler said:
> 
> is no way to check whether a value is "equal" to NaN. In math, however, 
> there is a function IsNaN(). And my feeling is that these special 
> numbers NaN and Infinity are implemented in math in a more general way 
> than in numlib. An idea would be to remove NaN and Infinity from the 
> numlib unit "typ" to replace them by the math values.

No, cleaning up "typ" a bit using math is no problem. RTL generally have
functions like this since coprocessors are standard. Just keep the
separation of typing (arbint/arbfloat) a bit, it can be useful to change the
library's precision.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to