Number.MAX_VALUE
JavaScript 1.1+, ECMAScript 1.0+, JScript 1.0+ Nav3+, NES2+, IE 3+, Opera3+ Syntax
Number.MAX_VALUE
Description
The MAX_VALUE property of the Number object is used to get the maximum representable value for a number. This is approximately: 1.79E 308.
Example
Listing 6.182 shows how the MAX_VALUE property is used.
Listing 6.182 Example of the MAX_VALUE
<html> <body> <script language="JavaScript"> <!–– Hide // checks to see if the number is a MAX_VALUE if((9999*9999) <= Number.MAX_VALUE){ document.write("The number is not greater than the maximum value"); } // End Hide ––> </script> </body> </html> |
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.