TopLevel
Class Number
Number
A Number object represents any numerical value, whether it is an integer or floating-point number. Generally, you do not need to worry about a Number object because a numerical value automatically becomes a Number object instance when you use a numerical value or assign it to a variable.
Constants
MAX_VALUE  :  Number
The largest representable Number.
MIN_VALUE  :  Number
The smallest representable Number.
NaN  :  Number
Not a Number.
NEGATIVE_INFINITY  :  Number
Negative infinite value; returned on overflow;
POSITIVE_INFINITY  :  Number
Negative infinite value; returned on overflow;
Constructor Summary
Number()
Constructs a Number.
Number(num : Number)
Constructs a new Number using the specified Number.
Number(value : String)
Constructs a Number using the specified value.
Method Summary
toExponential() : String
Converts this Number to a String using exponential notation.
toExponential(digits : Number) : String
Converts this Number to a String using exponential notation with the specified number of digits after the decimal place.
toFixed() : String
Converts a Number to a String that contains a no fractional part.
toFixed(digits : Number) : String
Converts a Number to a String that contains a specified number of digits after the decimal place.
toLocaleString() : String
Converts this Number to a String using local number formatting conventions.
toPrecision(precision : Number) : String
Converts a Number to a String using the specified number of signigicant digits.
toString() : String
A String representation of this Number.
Converts the number into a string using the specified radix (base).
Methods inherited from class Object
Constructor Detail
Number
public Number()
Constructs a Number.

Number
public Number(num : Number)
Constructs a new Number using the specified Number.
Parameters:
num - the Number to use.

Number
public Number(value : String)
Constructs a Number using the specified value.
Parameters:
value - the value to use when creating the Number.

Method Detail
toExponential
toExponential() : String
Converts this Number to a String using exponential notation.
Returns:
a String using exponential notation.

toExponential
toExponential(digits : Number) : String
Converts this Number to a String using exponential notation with the specified number of digits after the decimal place.
Parameters:
digits - the number of digits after the decimal place.
Returns:
a String using exponential notation with the specified number of digits after the decimal place.

toFixed
toFixed() : String
Converts a Number to a String that contains a no fractional part.
Returns:
a String representation of the number

toFixed
toFixed(digits : Number) : String
Converts a Number to a String that contains a specified number of digits after the decimal place.
Parameters:
digits - the number of digits after the decimal place.
Returns:
a String that contains a specified number of digits after the decimal place.

toLocaleString
toLocaleString() : String
Converts this Number to a String using local number formatting conventions.
Returns:
a String using local number formatting conventions.

toPrecision
toPrecision(precision : Number) : String
Converts a Number to a String using the specified number of signigicant digits. Uses exponential or fixed point notation depending on the size of the number and the nimber of significant digits specified.
Parameters:
precision - the precision to use when converting the Number to a String.
Returns:
a String using the specified number of signigicant digits.

toString
toString() : String
A String representation of this Number.
Returns:
a String representation of this Number.

toString