JavaScript NEGATIVE_INFINITYProperty
Definition and Usage
The NEGATIVE_INFINITY property represents negative infinity.
The NEGATIVE_INFINITY property represents a value less than Number.MIN_VALUE.
Use Number.NEGATIVE_INFINITY
NEGATIVE_INFINITY is a static variable of the JavaScript Number object.
The calling method is: Number.NEGATIVE_INFINITY.
Using a custom Number object x to call this property (x.NEGATIVE_INFINITY) will return undefined:
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the NEGATIVE_INFINITY property.
Syntax
Number.NEGATIVE_INFINITY;
Technical Details
| Return value: | Negative infinity, returned when overflow occurs. |
|---|---|
| JavaScript Version: | 1.1 |
More Examples
Example
Create a negative infinity number:
var n=(-Number.MAX_VALUE)*2;
nOutput:
-Infinity
Try it Yourself »
Other Extensions
JavaScript Number Object