Flash CS3 Documentation |
|||
| Flash Lite 2.x ActionScript 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.
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/00005381.html