Infinity Constant; Nan Constant - MACROMEDIA FLASHLITE2 ACTIONSCRIPT-LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

Example
This example shows how automatic data typing converts
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
Availability: ActionScript 1.0; Flash Lite 1.1
See also
,
isNaN function
NaN (Number.NaN property)
28
ActionScript language elements
.
.
.
isNaN()
to a number and to a string:
false

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash lite 2

Table of Contents