Java.lang.
Math
‡ Final class
‡ exetnds object
‡ imported by default
‡ contains methods for performing basic numeric operations
such as the elementary exponential, logarithm, square root, and
trigonometric functions
Fields
static double E
static double PI
Methods
‡ static int round(float a)
Returns the closest int to the argument.
‡ static int min(int a, int b)Returns the
smaller of two int values.
‡ static int max(int a, int b)
Returns the greater of two int values.
‡ static int abs(int a)
Returns the absolute value of an int value.
‡ static long min(long a, long b)
Returns the smaller of two long values.
‡static long max(long a, long b)
Returns the greater of two long values.
‡static long abs(long a)
Returns the absolute value of a long value
static float abs(float a)
Returns the absolute value of a float value.
static float min(float a, float b)
Returns the smaller of two float values
Note :
Only above those methods are show which are static and
have return type of float , long and int.