MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 570

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

Method summary for the Number class
Method
Number.toString()
Number.valueOf()
Property summary for the Number class
Property
Number.MAX_VALUE
Number.MIN_VALUE
Number.NaN
Number.NEGATIVE_INFINITY
Number.POSITIVE_INFINITY
Constructor for the Number class
Availability
Flash Player 5.
Usage
new Number(value)
Parameters
The numeric value of the Number object being created, or a value to be converted to
value
a number.
Returns
Nothing.
Description
Constructor; creates a new Number object. You must use the Number constructor when using
Number.toString()
properties of a Number object. The
Number object is not the same as the
primitive value.
Example
The following code constructs new Number objects.
n1 = new Number(3.4);
n2 = new Number(-10);
See also
Number()
570
Chapter 12: ActionScript Dictionary
Description
Returns the string representation of a Number object.
Returns the primitive value of a Number object.
Description
Constant representing the largest representable number (double-
precision IEEE-754). This number is approximately 1.79E+308.
Constant representing the smallest representable number (double-
precision IEEE-754). This number is approximately 5e-324.
Constant representing the value for Not a Number (
Constant representing the value for negative infinity.
Constant representing the value for positive infinity. This value is the
same as the global variable
and
Number.valueOf()
new Number
Number()
.
Infinity
. You do not use a constructor when using the
constructor is primarily used as a placeholder. A
function that converts a parameter to a
).
NaN

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents