Visit Mozilla.org

Referencia de JavaScript 1.5:Propiedades globales:Infinity

De MDC


Tabla de contenidos

[editar] Summary

A numeric value representing infinity.

Core Global Property
Implemented in: JavaScript 1.3
ECMA Version: ECMA-262

[editar] Syntax

Infinity

[editar] 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.

[editar] See also

Number.NEGATIVE_INFINITY, Number.POSITIVE_INFINITY