JavaScript API Reference for Oracle ADF Faces
|
Oracle Fusion Middleware JavaScript API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E12046-05 |
||||||||
| PREV NEXT | FRAMES NO FRAMES Warning: private items are visible | ||||||||
org.ecmascript.object.Object | +--org.ecmascript.object.Math
public abstract class Math extends Object
Field Summary |
|
|---|---|
public static Number |
|
public static Number |
|
public static Number |
|
public static Number |
|
public static Number |
|
public static Number |
|
public static Number |
|
public static Number |
|
Fields inherited from org.ecmascript.object.Object |
constructor, prototype |
Method Summary |
|
|---|---|
public static Number |
|
public static Number |
|
public static Number |
|
public static Number |
|
public static Number |
|
public static Number |
|
public static Number |
|
public static Number |
|
public static Number |
|
public static Number |
|
public static Number |
|
public static Number |
|
public static Number |
|
public static Number |
|
public static Number |
|
public static Number |
|
public static Number |
|
public static Number |
|
Field Detail |
|---|
public static Number Epublic static Number LN10ln(10) (natural logarithm of 10; approximately 2.303).public static Number LN2ln(2) (natural logarithm of 2; approximately 0.693).public static Number LOG10Elog10(E) (base 10 logarithm of Euler's constant; approximately 0.434).public static Number LOG2Elog2(E) (base 2 logarithm of Euler's constant; approximately 1.443).public static Number PIpublic static Number SQRT1_2public static Number SQRT2
Method Detail |
|---|
public static Number abs(Number value)value |
- | the specified number |
Number - the absolute value of the specified numberpublic static Number acos(Number value)value |
- | the specified number |
Number - the result between zero and π radians or Number.NaN if the specified number is not in the range -1 through 1public static Number asin(Number value)value |
- | the specified number |
Number - the result between -π/2 and π/2 radians or Number.NaN if the specified number is not in the range -1 through 1public static Number atan(Number value)value |
- | the specified number |
Number - the result between -π/2 and π/2 radiansatan2(Number, Number)public static Number atan2(Number x,
Number y)x |
- | the specified x coordinate |
y |
- | the specified y coordinate |
Number - the result between -π and π radiansatan(Number)public static Number ceil(Number value)value |
- | the specified number |
Number - the nearest integer that is equal to or greater than the specified numberpublic static Number cos(Number theta)theta |
- | the specified angle |
Number - the result in the range -1 through 1public static Number exp(Number value)E^value (Euler's constant raised to the specified power).value |
- | the specified number |
Number - the resultpublic static Number floor(Number value)value |
- | the specified number |
Number - the nearest integer that is equal to or less than the specified numberpublic static Number log(Number value)ln(value) (natural logarithm of the specified number).value |
- | the specified number |
Number - the result or Number.NaN if the specified number is negativepublic static Number max(Number first,
Number second)first |
- | the first number |
second |
- | the second number |
Number - the largest of the given valuespublic static Number min(Number first,
Number second)first |
- | the first number |
second |
- | the second number |
Number - the smallest of the given valuespublic static Number pow(Number value,
Number power)value^power (the specified value raised to the specified power).value |
- | the value number |
power |
- | the power number |
Number - the resultpublic static Number random()For a floating point number that is greater than or equal to min and less than max, use:
Math.random() * (max - min) + min
For an integer that is greater than or equal to min and less than or equal to max, use:
Math.floor(Math.random() * (max - min + 1)) + minNumber - a value that is greater than or equal to 0 and less than 1public static Number round(Number value)value |
- | the specified number |
Number - the nearest integer to the specified numberpublic static Number sin(Number theta)theta |
- | the specified angle |
Number - the result in the range -1 through 1public static Number sqrt(Number value)value |
- | the specified number |
Number - the square root of the specified number or Number.NaN if the specified number is negativepublic static Number tan(Number theta)theta |
- | the specified angle |
Number - the result
|
Oracle Fusion Middleware JavaScript API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E12046-05 |
||||||||
| PREV NEXT | FRAMES NO FRAMES Warning: private items are visible | ||||||||