Die Klasse Math (java.lang.Math)
Datenelemente
- public static final double E- 
Die Eulersche Zahl e=2,71...
- 
public static final double PI- 
Die Kreiszahl Pi=3,14...
Methoden
- 
public static native doubleIEEEremainder(double f1, double f2)- 
Liefert den Divisionsrest von f1/f2.
- 
public static long abs(long a)- 
Liefert den Betrag von a.
- 
public static  double  abs(double  a)- 
Liefert den Betrag von a.
- 
public static  float  abs(float  a)- 
Liefert den Betrag von a.
- 
public static  int  abs(int  a)- 
Liefert den Betrag von a.
- 
public static native  double  acos(double  a)- 
Liefert den Winkel im Bogenmaß, dessen Cosinus a ist. Das Ergebnis liegt zwischen 0 und Pi einschließlich.
- 
public static native  double  asin(double  a)- 
Liefert den Winkel im Bogenmaß, dessen Sinus a ist. Das Ergebnis liegt zwischen -Pi/2 und Pi/2 einschließlich.
- 
public static native  double  atan(double  a)- 
Liefert den Winkel im Bogenmaß, dessen Tangens a ist. Das Ergebnis liegt zwischen Pi/2 und Pi/2 einschließlich.
- 
public static native  double  atan2(double  a,  double  b)- 
Liefert den Winkel im Bogenmaß, dessen Tangens b/a ist. Die Vorzeichen von a und b werden zur Ermittlung des richtigen Quadranten berücksichtigt.
- 
public static native  double  ceil(double  a)- 
Liefert die kleinste Ganzzahl, die größer oder gleich a ist.
- 
public static native  double  cos(double  a)- 
Liefert den Cosinus von a, wobei a im Bogenmaß erwartet wird.
- 
public static native  double  exp(double  a)- 
Liefert den Wert von e**a.
- 
public static native  double  floor(double  a)- 
Liefert die größte Ganzzahl, die kleiner oder gleich a ist.
- 
public static native  double  log(double  a)- 
Liefert den natürlichen Logarithmus von a.
Falls a den Wert NaN  hat oder kleiner als null ist, wird NaN zurückgegeben.
- 
public static  double  max(double  a,  double  b)- 
Liefert das Maximum von a und b.
- 
public static  float  max(float  a,  float  b)- 
Liefert das Maximum von a und b.
- 
public static  long  max(long  a,  long  b)- 
Liefert das Maximum von a und b.
- 
public static  int  max(int  a,  int  b)- 
Liefert das Maximum von a und b.
- 
public static  int  min(int  a,  int  b)- 
Liefert das Minimum von a und b.
- 
public static  double  min(double  a,  double  b)- 
Liefert das Minimum von a und b.
- 
public static  long  min(long  a,  long  b)- 
Liefert das Minimum von a und b.
- 
public static  float  min(float  a,  float  b)- 
Liefert das Minimum von a und b.
- 
public static native  double  pow(double  a,  double  b)- 
Liefert den Wert von a**b.- Exception: ArithmeticException 
- 
- Falls a (die Basis) null und b (der Exponent) kleiner als null ist.
- Wenn a kleiner als null und b keine ganze Zahl ist.
 
- 
public static synchronized  double  random()- 
Liefert eine Zufallszahl zwischen 0.0 und 1.0.
- 
public static native  double  rint(double  a)- 
Rundet a auf eine Ganzzahl, wobei das Ergebnis ebenfalls vom Typ double ist.
- 
public static  int  round(float  a)- 
Rundet einen float-Wert auf eine Ganzzahl und liefert sie als int-Wert zurück.
- 
public static  long  round(double  a)- 
Rundet einen double-Wert auf eine Ganzzahl und liefert sie als long-Wert zurück.
- 
public static native  double  sin(double  a)- 
Liefert den Sinus von a, wobei a im Bogenmaß erwartet wird.
- 
public static native  double  sqrt(double  a)- 
Liefert die Quadratwurzel von a.
Falls a den Wert NaN  hat oder kleiner als null ist, wird NaN zurückgegeben.
- 
public static native  double  tan(double  a)- 
Liefert den Tangens von a, wobei a im Bogenmaß erwartet wird.