JavaScript tutorial:
POSITIVE_INFINITY property

ContentsJavaScript Language Reference

 

Applies to: Number Object

The POSITIVE_INIFINITY property is used to get a value larger than the largest number (Number.MAX_VALUE) that can be represented in JavaScript.

Syntax

Number.POSITIVE_INFINITY

The number argument is the Number object.

Return vlaue

Returns a value larger than the largest number (Number.MAX_VALUE) that can be represented in JavaScript.

Example

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

JavaScript displays POSITIVE_INFINITY values as infinity. This value behaves mathematically as infinity.

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