|
Oracle Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.2.1.2) E76716-01 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |
org.ecmascript.object.Object | +--org.ecmascript.primitive.number
protected class number extends Object
Field Summary |
|
---|---|
public number |
|
public number |
|
public number |
|
public number |
|
public number |
|
Fields inherited from org.ecmascript.object.Object |
constructor, prototype |
Constructor Summary |
|
---|---|
public |
Method Summary |
|
---|---|
public string |
|
public string |
|
public string |
|
public string |
Field Detail |
---|
public number MAX_VALUE
public number MIN_VALUE
public number NaN
NaN
would result from someone trying to parse a string
that cannot be converted into a number
.number.NaN
, Global.NaN
, and Global.isNaN()
:
NaN == number.NaN
has a result of false
.NaN === number.NaN
has a result of false
.NaN == NaN
has a result of false
.NaN === NaN
has a result of false
.number.NaN == number.NaN
has a result of false
.number.NaN === number.NaN
has a result of false
.isNaN(NaN)
has a result of true
.isNaN(number.NaN)
has a result of true
.Global.isNaN(String)
Global.NaN
public number NEGATIVE_INFINITY
MIN_VALUE
.public number POSITIVE_INFINITY
MAX_VALUE
.Global.Infinity
Constructor Detail |
---|
public number(number value)
value |
- | the numeric value to convert into a number; if conversion fails, number.NaN will be used instead |
Method Detail |
---|
public string toExponential(number numberOfDecimalPlaces)
numberOfDecimalPlaces |
- | the number of decimal places to use |
string
- a string representation of the number in exponential notation using the specified number of decimal placespublic string toFixed(number numberOfDecimalPlaces)
numberOfDecimalPlaces |
- | the number of decimal places to use |
string
- a string representation of the number in rounded to the specified number of decimal placespublic string toPrecision(number numberOfDigits)
numberOfDigits |
- | the number of digits to use |
string
- a string representation of the number that uses only the specified number of digitspublic string toString(number radix)
radix |
- | optional base radix used to represent the number, e.g. 2 for binary, 8 for octal, 10 for decimal, and 16 for hexadecimal
Default value = 10
|
string
- a string representation of the number using the specified radix
|
Oracle Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.2.1.2) E76716-01 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |