Skip to content

Frac(inf) results in invalid floating point operation

When using frac on an infinity value (and using softfloat routines), programs receive an invalid floating point operation. This seems to be caused by https://gitlab.com/freepascal.org/fpc/source/-/blob/main/rtl/inc/genmath.inc#L1781 where subtracting a value from inf causes that exception to be raised in float64_sub

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information