How do I test for NaN? [duplicate]

NaN's are unusual: they are not equal to anything, even themselves. You need to use isNaN(inbperr) to tell whether a value is a NaN or not.


NaN is Not a Number. One of few JavaScript toxic types. It can reduce whole expression to NaN.

http://www.crockford.com/javascript/encyclopedia/