math.isnan()

math.isnan(x) → bool

Check if float x is not a number (NaN).