float.IsNaN()

Determines whether a float is NaN or not.