math.nan¶ Not-a-number (NaN) as a float. NaN is the only value that is not equal to itself: math.nan ~= math.nan is true. Use math.isnan to test for NaN rather than direct comparison. Type: number Examples assert(math.isnan(math.nan))