NaN and Infinity

Internet Object supports NaN (Not a Number) and Infinity values. Not a number and the Infinity must be represented as literal characters NaN and Inf. The Infinity value may be prefixed with an optional plus or minus sign.

The Structure for NaN and Inf values

Chars

Char Code

Detail

-

U+2010

Minus Sign

+

U+002B

Plus Sign

Inf

U+006C U+006E U+0066

The keyword Inf

NaN

U+004E U+0061

The keyword NaN

Valid Values

NaN, Inf, -Inf, +Inf

Last updated

Was this helpful?