How can i check to see if an expression evaluates to a quiet NaN?

Z.