Number - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Number

Object
|
+-Number
public class Number
extends Object
The Number class is a simple wrapper object for the Number data type. You can manipulate
primitive numeric values by using the methods and properties associated with the Number
class. This class is identical to the JavaScript Number class.
The properties of the Number class are static, which means you do not need an object to use
them, so you do not need to use the constructor.
The following example calls the
string
:
1234
var myNumber:Number = new Number(1234);
myNumber.toString();
The following example assigns the value of the
without the use of the constructor:
var smallest:Number = Number.MIN_VALUE;
Availability: ActionScript 1.0; Flash Player 5 - (became a native object in Flash Player 6,
which improved performance significantly).
Property summary
Modifiers
Property
static
MAX_VALUE:Number
static
MIN_VALUE:Number
static
NaN:Number
static
NEGATIVE_INFINITY:Nu
mber
static
POSITIVE_INFINITY:Nu
mber
method of the Number class, which returns the
toString()
MIN_VALUE
Description
The largest representable number (double-precision
IEEE-754).
The smallest representable number (double-precision
IEEE-754).
The IEEE-754 value representing Not A Number
(NaN).
Specifies the IEEE-754 value representing negative
infinity.
Specifies the IEEE-754 value representing positive
infinity.
property to a variable declared
Number
985

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF