JavaScript API Reference for Oracle ADF Faces
  | 
Oracle Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.1.2) E23186-01  | 
||||||||
| PREV NEXT | FRAMES NO FRAMES Warning: private items are visible | ||||||||
org.ecmascript.object.Object | +--org.ecmascript.primitive.Number
public 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_VALUEpublic Number MIN_VALUEpublic Number NaNNaN 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.NaNpublic Number NEGATIVE_INFINITYMIN_VALUE.public Number POSITIVE_INFINITYMAX_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.1.2) E23186-01  | 
||||||||
| PREV NEXT | FRAMES NO FRAMES Warning: private items are visible | ||||||||