Infinity

Summary

A numeric value representing infinity.

Core Global Property
Implemented in JavaScript 1.3
ECMAScript Edition ECMAScript 1st Edition

Syntax

Infinity

Description

Infinity is a property of the global object, i.e. it is a variable in global scope.

The initial value of Infinity is Number.POSITIVE_INFINITY. The value Infinity (positive infinity) is greater than any other number including itself. This value behaves mathematically like infinity; for example, anything multiplied by Infinity is Infinity, and anything divided by Infinity is 0.

JavaScript 1.8.5 note

Starting in JavaScript 1.8.5 (Firefox 4), Infinity is read only, as per the ECMAScript 5 specification.

See also

Number.NEGATIVE_INFINITY, Number.POSITIVE_INFINITY

Tags (1)

Contributors to this page: evilpie, Sheppy, Marcoos, Yuichirou, Sevenspade, Callek, trevorh, Mgjbot, Maian, Dria
Last updated by: trevorh,
Last reviewed by: trevorh,