What about the other floating-point special cases. Is it sufficient to check for NaN only?