Class java.lang.Math
All Packages    This Package    Previous    Next

Class java.lang.Math

java.lang.Object
   |
   +----java.lang.Math

public final class Math
extends Object
Math library.
Version:
1.9, 09 Feb 1995

abs(int)
abs(long)
abs(float)
abs(double)
acos(double)
annuity(double, double)
asin(double)
atan(double)
atan2(double, double)
ceil(double)
cos(double)
exp(double)
floor(double)
log(double)
max(int, int)
max(long, long)
max(float, float)
max(double, double)
min(int, int)
min(long, long)
min(float, float)
min(double, double)
pow(double, double)
random()
Generate a random number between 0.0 and 1.0.
rint(double)
round(float)
round(double)
sin(double)
sqrt(double)
srandom(int)
Set the seed of the random generator.
tan(double)

sin
  public static double sin(double a)
cos
  public static double cos(double a)
tan
  public static double tan(double a)
asin
  public static double asin(double a)
acos
  public static double acos(double a)
atan
  public static double atan(double a)
exp
  public static double exp(double a)
log
  public static double log(double a)
sqrt
  public static double sqrt(double a)
ceil
  public static double ceil(double a)
floor
  public static double floor(double a)
rint
  public static double rint(double a)
atan2
  public static double atan2(double a,
                             double b)
annuity
  public static double annuity(double a,
                               double b)
pow
  public static double pow(double a,
                           double b)
round
  public static int round(float a)
round
  public static int round(double a)
srandom
  public static void srandom(int seed)
Set the seed of the random generator.

random

  public static double random()
Generate a random number between 0.0 and 1.0.
Returns:
a number between 0.0 and 1.0.

abs

  public static int abs(int a)
abs
  public static long abs(long a)
abs
  public static float abs(float a)
abs
  public static double abs(double a)
max
  public static int max(int a,
                        int b)
max
  public static long max(long a,
                         long b)
max
  public static float max(float a,
                          float b)
max
  public static double max(double a,
                           double b)
min
  public static int min(int a,
                        int b)
min
  public static long min(long a,
                         long b)
min
  public static float min(float a,
                          float b)
min
  public static double min(double a,
                           double b)

All Packages    This Package    Previous    Next