In the IEEE 754-2008 standard (referred to as IEEE 754 henceforth), a quiet NaN or qNaN is a NaN which is quiet
in the sense of rarely signaling a floating-point exception. This is in contrast
to the signaling NaN (sNaN) which often occurs in
conjunction with any number of exceptions and handling mechanisms defined therefor
(IEEE Computer Society 2008).
Within the framework documentation, it is suggested that qNaNs be implemented in such a way as to afford useful diagnostic information regarding invalid or unavailable
data and results. Under the default exception handling mechanisms provided within
IEEE 754, any operation which signals an invalid operation exception and for
which a floating-point result is expected shall return a quiet NaN; qNaNs may also
result from operations not delivering a floating-point result, though in practice,
these operations are far more likely to output sNaNs instead.