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 |
---|---|---|
|
1.7976931348623157e+308 |
Largest positive number. |
|
2.2250738585072014e-308 |
Smallest positive nonzero value. |
|
NaN |
Not a number. |
|
Infinity |
Number greater than |
|
-Infinity |
Number less than |