Property | Type | Description | |
---|---|---|---|
MAX_VALUE | Number | ||
MIN_VALUE | Number | ||
NEGATIVE_INFINITY | Number | ||
NaN | Number | ||
POSITIVE_INFINITY | Number |
Method | Description | |
---|---|---|
Number ( ) : System |
Creates a Number object with the value of 0.
|
|
Number ( Object num = null ) : System |
Creates a Number object with the specified value.
|
|
toExponential ( uint fractionDigits ) : String |
Returns a string representation of the number in exponential notation.
|
|
toFixed ( uint fractionDigits ) : String |
Returns a string representation of the number in fixed-point notation.
|
|
toLocaleString ( ) : String |
Returns the local string representation of the specified Number object (myNumber).
|
|
toPrecision ( uint precision ) : String |
Returns a string representation of the number either in exponential notation or in fixed-point notation.
|
|
toString ( ) : String |
Returns the string representation of the specified Number object (myNumber).
|
|
toString ( Number radix ) : String |
Returns the string representation of the specified Number object (myNumber).
|
Method | Description | |
---|---|---|
Number ( double d ) : System | ||
forDigit ( int digit, int radix ) : char | ||
toFormat ( char format, uint digits, uint offset ) : String | ||
toString ( Number radix, bool local ) : String |
public Number ( Object num = null ) : System | ||
num | Object | The numeric value of the Number instance being created or a value to be converted to a Number. |
return | System |
public toExponential ( uint fractionDigits ) : String | ||
fractionDigits | uint | An integer between 0 and 20, inclusive, that represents the desired number of decimal places. |
return | String |
public toFixed ( uint fractionDigits ) : String | ||
fractionDigits | uint | An integer between 0 and 20, inclusive, that represents the desired number of decimal places. |
return | String |
public toPrecision ( uint precision ) : String | ||
precision | uint | An integer between 1 and 21, inclusive, that represents the desired number of digits to represent in the resulting string. |
return | String |
public toString ( Number radix ) : String | ||
radix | Number | 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. |
return | String |