detect NaN as a number