Numeric Constants

You can write code that references a numeric constant as a property of the Number object. A numeric constant does not include a literal representation.

The following table describes some numeric constants.

Numeric Constant Value Description

Number.MAX_VALUE

1.7976931348623157e+308

Largest positive number.

Number.MIN_VALUE

2.2250738585072014e-308

Smallest positive nonzero value.

Number.NaN

NaN

Not a number.

Number.POSITIVE_INFINITY

Infinity

Number greater than MAX_VALUE.

Number.NEGATIVE_INFINITY

-Infinity

Number less than MIN_VALUE.