My limited understanding is that a quiet NaN is the result of an exception (such as division by zero) that has been suppressed. It's purpose seems to be to permit "The propagation of quiet NaNs through arithmetic operations allows errors to be detected at the end of a sequence of operations without extensive testing during intermediate stages."
My compiler doesn't seem to recognise NaNs
EDIT
It does but inconsistently
My compiler doesn't seem to recognise NaNs
EDIT
It does but inconsistently
Code:
double x, y, z;
x = 1.0;
y = 1.0 / 0.0; // Returns "+INF" - a NaN
z = x / 0.0; // Throws a "divide by zero exception"
Last edited:
