Constants |
|
These constants are referred to via the form Math.Constant. For example, Euler’s constant is |
|
static double |
E |
static double |
PI |
Methods |
|
All methods are called by using the form Math.method(argument). The following example calls the method and returns a value to be placed in the variable y. |
|
static double |
abs(double a) |
static float |
abs(float a) |
static int |
abs(int a) |
static long |
abs(long a) |
static double |
acos(double a) |
static double |
asin(double a) |
static double |
atan(double a) |
static double |
atan2(double y, double x) |
static double |
ceil(double a) |
static double |
cos(double a) |
static double |
exp(double a) |
static double |
floor(double a) |
static double |
IEEEremainder(double f1, double f2) |
static double |
log(double a) |
static double |
max(double a, double b) |
static float |
max(float a, float b) |
static int |
max(int a, int b) |
static long |
max(long a, long b) |
static double |
min(double a, double b) |
static float |
min(float a, float b) |
static int |
min(int a, int b) |
static long |
min(long a, long b) |
static double |
pow(double a, double b) |
static double |
random() |
static double |
rint(double a) |
static long |
round(double a) |
static int |
round(float a) |
static double |
sin(double a) |
static double |
sqrt(double a) |
static double |
tan(double a) |
static double |
toDegrees(double angrad) |
static double |
toRadians(double angdeg) |