# Number Constants (JavaScript)

Number constants return constant values that are properties of the **Number** object. These include the following: MAX_VALUE, MIN_VALUE, NaN, NEGATIVE_INFINITY, and POSITIVE_INFINITY.

The following table lists constant values that are properties of the Number object. You do not have to create **Number** object to access these constants.

Constant | Value returned | Comments |
---|---|---|

| The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. | |

| The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. | |

| A special value that indicates that an arithmetic expression returned a value that is not a number. | In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function. |

| A value that is more negative than the largest negative number (- | JavaScript displays NEGATIVE_INFINITY values as -infinity. This value behaves mathematically as negative infinity. |

| A value larger than the largest number ( | JavaScript displays POSITIVE_INFINITY values as infinity. This value behaves mathematically as infinity. |

Supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards. See Version Information.

**Applies To**: Number Object (JavaScript)