Number - NaN (Not A Number)

1 - About

NaN, or Not a Number, is a value that returns when impossible things are asked in arithmetic – like:

  • divide zero by zero.
  • or during the bad coercion

NaN (paradoxically named not a number) is a special floating-point value in the IEEE floating-point standard.

3 - Management

3.1 - Not equal to itself

The IEEE floating-point standard requires that NaN must be treated as unequal to itself.

Demo in Javascript:

console.log(NaN === NaN);    // false

data/type/number/nan.txt · Last modified: 2018/05/30 11:20 by gerardnico