![]() ![]() | |
Flash Player 5; behavior changed in Flash Player 7.
myNumber.toString(radix)
radix Specifies the numeric base (from 2 to 36) to use for the number-to-string conversion. If you do not specify the radix parameter, the default value is 10.
A string.
Method; returns the string representation of the specified Number object (myNumber).
If myNumber is undefined, the return value is as follows:
NaN.The following example uses 2 and 8 for the radix parameter and returns a string that contains the corresponding representation of the number 9.
myNumber = new Number (9); trace(myNumber.toString(2)); / 1001 trace(myNumber.toString(8)); / 11
![]() ![]() | |