Number.NEGATIVE_INFINITY
Availability
Flash Player 5.
Usage
Number.NEGATIVE_INFINITY
Description
Property; specifies the IEEE-754 value representing negative infinity. The value of this property is
the same as that of the constant
Negative infinity is a special numeric value that is returned when a mathematical operation or
function returns a negative value larger than can be represented.
Example
This example compares the result of dividing the following values.
var posResult:Number = 1/0;
if (posResult == Number.POSITIVE_INFINITY) {
trace("posResult = "+posResult); // output: posResult = Infinity
}
var negResult:Number = -1/0;
if (negResult == Number.NEGATIVE_INFINITY) {
trace("negResult = "+negResult); // output: negResult = -Infinity
.
-Infinity
Number.NEGATIVE_INFINITY
655
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers