Nan (Number.nan Property); Negative_Infinity; (Number.negative_Infinity Property) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Example
The following ActionScript displays the largest and smallest representable numbers to the
Output panel to the log file.
trace("Number.MIN_VALUE = "+Number.MIN_VALUE);
trace("Number.MAX_VALUE = "+Number.MAX_VALUE);
This code displays the following values:
Number.MIN_VALUE = 4.94065645841247e-324
Number.MAX_VALUE = 1.79769313486232e+308

NaN (Number.NaN property)

public static NaN :
The IEEE-754 value representing Not A Number (
Availability: ActionScript 1.0; Flash Lite 2.0
See also
isNaN function

NEGATIVE_INFINITY

(Number.NEGATIVE_INFINITY property)

public static NEGATIVE_INFINITY :
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.
Availability: ActionScript 1.0; Flash Lite 2.0
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
Number
Number
.
-Infinity
).
NaN
Number
547

Advertisement

Table of Contents
loading

Table of Contents