Is there a way to generate a QNaN in IBM PL/I? This is usually accomplished by dividing (0.0 / 0.0),but that results in an INVALIDOP condition in PL/I (either at compile-time or run-time.)
I see the general testing builtins (ISNAN, ISFINITE, ISNORMAL, etc..) but can't find an easy way to generate a QNaN (quiet NaN) directly in PL/I without doing byte-order specific bit-twiddling in UNIONs.
- Thanks -
- Dave Rivers -