Flash CS3 Documentation |
|||
| Flash Lite 2.x ActionScript Language Reference > ActionScript classes > Number | |||
Object
|
+-Number
public class Number
extends Object
The Number class is a simple wrapper object for the Number data type. You can manipulate primitive numeric values by using the methods and properties associated with the Number class. This class is identical to the JavaScript Number class.
The properties of the Number class are static, which means you do not need an object to use them, so you do not need to use the constructor.
The following example calls the toString() method of the Number class, which returns the string 1234:
var myNumber:Number = new Number(1234); myNumber.toString();
The following example assigns the value of the MIN_VALUE property to a variable declared without the use of the constructor:
var smallest:Number = Number.MIN_VALUE;
|
Modifiers |
Property |
Description |
|---|---|---|
|
|
The largest representable number (double-precision IEEE-754). |
|
|
|
The smallest representable number (double-precision IEEE-754). |
|
|
|
The IEEE-754 value representing Not A Number ( |
|
|
|
Specifies the IEEE-754 value representing negative infinity. |
|
|
|
Specifies the IEEE-754 value representing positive infinity. |
Properties inherited from class Object constructor (Object.constructor property), __proto__ (Object.__proto__ property), prototype (Object.prototype property), __resolve (Object.__resolve property)
|
Signature |
Description |
|---|---|
|
Creates a new Number object. |
|
Modifiers |
Signature |
Description |
|---|---|---|
|
|
Returns the string representation of the specified Number object (myNumber). |
|
|
|
Returns the primitive value type of the specified Number object. |
Methods inherited from class Object
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/00005376.html