JavaScript tutorial:
NEGATIVE_INFINITY property

 

Applies to: Number Object

The NEGATIVE_INFINITY property is used to get a value more negative than the largest negative number (-Number.MAX_VALUE) representable in JavaScript.

Syntax

Number.NEGATIVE_INFINITY

The number argument is the Number object.

Return value

Returns a value more negative than the largest negative number (-Number.MAX_VALUE) representable in JavaScript.

Example

The Number object does not have to be created before the NEGATIVE_INFINITY property can be accessed.

JavaScript displays NEGATIVE_INFINITY values as -infinity. This value behaves mathematically as infinity.

See also: MAX_VALUE Property, MIN_VALUE Property, NaN Property, POSITIVE_INFINITY Property, toString Method