[fpc-pascal] math with infinity and NaN

gtt at wolfgang-ehrhardt.de gtt at wolfgang-ehrhardt.de
Wed Jun 20 10:30:30 CEST 2018


Zitat von C Western <l at c-m-w.me.uk>:

> My first reaction is that
> SetExceptionMask([exDenormalized,exZeroDivide,exOverflow,exUnderflow,exPrecision])
> would be required (I can't remember what the default is), but it  
> doesn't stop the error (x86_64/linux). I suspect a bug, though I am  
> slightly surprised it hasn't surfaced before.


You forgot the most important item: exInvalidOp! At least on Win7 the code
works as exptected.





More information about the fpc-pascal mailing list