May 2001
Intermediate to advanced
720 pages
23h 24m
English
Infinity Global Property — a constant representing an infinite number
Flash 5
Infinity
Read-only
Any number in ActionScript that exceeds the maximum allowed numeric
range is represented by the numeric constant
Infinity. The largest value allowed in
ActionScript is represented by Number.MAX_VALUE
(1.7976931348623157e+308).
The result of a calculation that exceeds the largest allowed number
is Infinity. For example:
Number.MAX_VALUE * 2; // Yields Infinity
Infinity also results when dividing a positive
number by zero:
1000 / 0; // Yields Infinity
Infinity is shorthand for
Number.POSITIVE_INFINITY.
-Infinity,
Number.POSITIVE_INFINITY; Section 4.3.3 in Chapter 4
Read now
Unlock full access