Accessibility
 
Home > Products > Flash > Support > ActionScript Dictionary
Flash Icon Macromedia Flash Support Center - ActionScript dictionary
Number.toString

Availability
Flash Player 5.

Usage

 myNumber  .toString(  radix  ) 

Parameters
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.

Returns
A string.

Description
Method; returns the string representation of the specified Number object ( myNumber ).

Example
The following example uses the Number . toString method, specifying 2 for the radix parameter, and returns a string that contains the binary representation of the number 1000.

 myNumber = new Number ( 1000 ); 
 myNumber.toString(2); 

To Table of Contents Back to Previous document Forward to next document