Latest web development tutorials

JavaScript NEGATIVE_INFINITY property

Number Object Reference JavaScript Number Object

Examples

Returns negative infinity:

Number.NEGATIVE_INFINITY;

Output:

-Infinity

try it"

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:

Examples

var x = 100;
x.NEGATIVE_INFINITY;

x output:

undefined

try it"


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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"


Number Object Reference JavaScript Number Object