Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Number > NEGATIVE_INFINITY (Number.NEGATIVE_INFINITY property) | |||
public static NEGATIVE_INFINITY : Number
Specifies the IEEE-754 value representing negative infinity. The value of this property is the same as that of the constant -Infinity.
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.
Availability: ActionScript 1.0; Flash Player 5
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
Flash CS3