how to check if nan code example Example 1: python test is nan Click to copymath.isnan(n) Example 2: check if value is NaN Click to copyNumber.isNaN(123)