EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Infinity Constant; Nan Constant

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
28 ActionScript language elements
Example
This example shows how automatic data typing converts
false to a number and to a string:
var bool1:Boolean = Boolean(false);
// converts it to the number 0
trace(1 + bool1); // outputs 1
// converts it to a string
trace("String: " + bool1); // outputs String: false
Infinity constant
Specifies the IEEE-754 value representing positive infinity. The value of this constant is the
same as
Number.POSITIVE_INFINITY.
Availability: ActionScript 1.0; Flash Lite 2.0
See also
POSITIVE_INFINITY (Number.POSITIVE_INFINITY property)
-Infinity constant
Specifies the IEEE-754 value representing negative infinity. The value of this constant is the
same as
Number.NEGATIVE_INFINITY.
Availability: ActionScript 1.0; Flash Lite 2.0
See also
NEGATIVE_INFINITY (Number.NEGATIVE_INFINITY property)
NaN constant
A predefined variable with the IEEE-754 value for NaN (not a number). To determine if a
number is NaN, use
isNaN().
Availability: ActionScript 1.0; Flash Lite 1.1
See also
isNaN function, NaN (Number.NaN property)

Table of Contents

Related product manuals