[fpc-devel] Math and numlib

Marco van de Voort marcov at stack.nl
Tue Mar 14 09:58:22 CET 2017


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.



More information about the fpc-devel mailing list