The following number constants are properties of the Number object.
Syntax Number Object ConstantsYou do not have to create Number object to access these constants.
Constant Value returned Number.MAX_VALUE The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. Number.MIN_VALUE The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. Number.NaN 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. Number.NEGATIVE_INFINITY A value that is less than the largest negative number that can be represented in JavaScript.JavaScript displays NEGATIVE_INFINITY values as-infinity
. Number.POSITIVE_INFINITY A value greater than the largest number that can be represented in JavaScript.JavaScript displays POSITIVE_INFINITY values as infinity
. See also Other articles
Attributions
Microsoft Developer Network: Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4