in reply to Detect if a scalar is NaN

Its in the FAQ: How do I determine whether a scalar is a number/whole/integer/float?