In computing, NaN, standing for Not a Number, is a particular value of a numeric data type which is undefined as a number, such as the result of . Systematic use of NaNs was intro…