Description
Method; returns the string representation of the specified Number object (
If
is undefined, the return value is as follows:
myNumber
•
In files published for Flash Player 6 or earlier, the result is 0.
•
In files published for Flash Player 7 or later, the result is
Example
The following example uses 2 and 8 for the
the corresponding representation of the number 9.
myNumber = new Number (9);
trace(myNumber.toString(2)); / 1001
trace(myNumber.toString(8)); / 11
See also
NaN
Number.valueOf()
Availability
Flash Player 5.
Usage
myNumber.valueOf()
Parameters
None.
Returns
A number.
Description
Method; returns the primitive value type of the specified Number object.
Number()
Availability
Flash Player 4; behavior changed in Flash Player 7.
Usage
Number(expression)
Parameters
An expression to convert to a number.
expression
Returns
A number or
NaN
.
.
NaN
parameter and returns a string that contains
radix
).
myNumber
Number()
573
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?