JavaScript NEGATIVE_INFINITY property
Definition and Usage
NEGATIVE_INFINITY property represents negative infinity.
NEGATIVE_INFINITY property represents less than Number.MIN_VALUE value.
Use Number.NEGATIVE_INFINITY
NEGATIVE_INFINITY static variable JavaScript Number object.
Call the method as: Number.NEGATIVE_INFINITY.
Use custom objects x Number to call the property (x.NEGATIVE_INFINITY) returns undefined:
Browser Support
All major browsers support NEGATIVE_INFINITY property
grammar
Number.NEGATIVE_INFINITY;
technical details
return value: | Negative infinity, return the value overflow. |
---|---|
JavaScript version: | 1.1 |
More examples
Examples
Create a negative infinity number:
var n=(-Number.MAX_VALUE)*2;
n output:
-Infinity
try it"