Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Number > Number constructor | |||
public Number(num:Object)
Creates a new Number object. The new Number constructor is primarily used as a placeholder. A Number object is not the same as the Number() function that converts a parameter to a primitive value.
Availability: ActionScript 1.0; Flash Player 5
num:Object - The numeric value of the Number object being created or a value to be converted to a number. The default value is 0 if value is not provided.
The following code constructs new Number objects:
var n1:Number = new Number(3.4); var n2:Number = new Number(-10);
toString (Number.toString method), valueOf (Number.valueOf method)
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00002031.html