Fields
Name | Description |
---|---|
E | The double value that is closer than any other to e, the base of the natural logarithms. |
PI | The double value that is closer than any other to pi, the ratio of the circumference of a circle to its diameter. |
Methods
Name | Description |
---|---|
abs(double) | Returns the absolute value of a double value. |
abs(float) | Returns the absolute value of a float value. |
abs(int) | Returns the absolute value of an int value. |
abs(long) | Returns the absolute value of a long value. |
acos(double) | Returns the arc cosine of an angle, in the range of 0.0 through pi. |
asin(double) | Returns the arc sine of an angle, in the range of -pi/2 through pi/2. |
atan(double) | Returns the arc tangent of an angle, in the range of -pi/2 through pi/2. |
atan2(double, double) | Converts rectangular coordinates (b, a) to polar (r, theta). |
ceil(double) | Returns the smallest (closest to negative infinity) double value that is not less than the argument and is equal to a mathematical integer. |
cos(double) | Returns the trigonometric cosine of an angle. |
exp(double) | Returns the exponential number e (i.e., 2.718...) raised to the power of a double value. |
floor(double) | Returns the largest (closest to positive infinity) double value that is not greater than the argument and is equal to a mathematical integer. |
IEEEremainder(double, double) | Computes the remainder operation on two arguments as prescribed by the IEEE 754 standard. |
log(double) | Returns the natural logarithm (base e) of a double value. |
max(double, double) | Returns the greater of two double values. |
max(float, float) | Returns the greater of two float values. |
max(int, int) | Returns the greater of two int values. |
max(long, long) | Returns the greater of two long values. |
min(double, double) | Returns the smaller of two double values. |
min(float, float) | Returns the smaller of two float values. |
min(int, int) | Returns the smaller of two int values. |
min(long, long) | Returns the smaller of two long values. |
pow(double, double) | Returns of value of the first argument raised to the power of the second argument. |
random() | Returns a random number between 0.0 and 1.0. |
rint(double) | returns the closest integer to the argument. |
round(double) | Returns the closest long to the argument. |
round(float) | Returns the closest int to the argument. |
sin(double) | Returns the trigonometric sine of an angle. |
sqrt(double) | Returns the square root of a double value. |
tan(double) | Returns the trigonometric tangent of an angle. |