May 2001
Intermediate to advanced
720 pages
23h 24m
English
Number.POSITIVE_INFINITY Property — constant representing any number greater than Number.MAX_VALUE
Flash 5
Number.POSITIVE_INFINITY
Read-only
The POSITIVE_INFINITY property stores a special
numeric value used to represent values greater than
Number.MAX_VALUE (the largest number representable
in ActionScript). This is known as an overflow
condition
and is usually caused by some sort
of mathematical error.
Number.POSITIVE_INFINITY is normally used in its
more convenient global property form, Infinity.
if (score == Number.POSITIVE_INFINITY) {
trace ("You've achieved the highest possible score.");
}
Infinity, isFinite( ),
Number.MAX_VALUE; Section 4.3.3 in Chapter 4
Read now
Unlock full access