# Math Class Methods List

Here is a list of some commonly used methods of the Math class:

abs(x): Returns the absolute value of x.

ceil(x): Returns the smallest integer greater than or equal to x.

cos(x): Returns the cosine of x (x is in radians).

exp(x): Returns the value of e raised to the power of x.

floor(x): Returns the largest integer less than or equal to x.

log(x): Returns the natural logarithm (base e) of x.

max(x, y): Returns the larger of x and y.

min(x, y): Returns the smaller of x and y.

pow(x, y): Returns the value of x raised to the power of y.

random(): Returns a random double value between 0.0 and 1.0.

round(x): Returns the closest long or int value to x.

sin(x): Returns the sine of x (x is in radians).

sqrt(x): Returns the positive square root of x.

tan(x): Returns the tangent of x (x is in radians).

toDegrees(x): Converts an angle measured in radians to an approximately equivalent angle measured in degrees.

toRadians(x): Converts an angle measured in degrees to an approximately equivalent angle measured in radians.

floorDiv(x, y): Returns the largest (closest to positive infinity) int value that is less than or equal to the algebraic quotient.

floorMod(x, y): Returns the floor modulus of the given arguments.

ulp(x): Returns the size of the ulp (units in the last place) of the argument.

signum(x): Returns the signum function of the argument; zero if the argument is zero, 1.0 if the argument is greater than zero, -1.0 if the argument is less than zero.

These methods can be used in various mathematical operations, such as calculating absolute values, rounding numbers, calculating trigonometric functions, finding the maximum and minimum values, and more.