The Math class provides lots of useful mathematics related methods
Gets the value of Pi
Gets the absolute value of the given number. For example, -32.233 will return 32.233.
Gets the smallest integer that is greater than or equal to the specified decimal number. For example, 32.233 will return 33.
Gets the largest integer that is less than or equal to the specified decimal number. For example, 32.233 will return 32.
Gets the natural logarithm value of the given number.
Gets the logarithm (base 10) value of the given number.
Gets the cosine of the given angle in radians.
Gets the sine of the given angle in radians.
Gets the tangent of the given angle in radians.
Gets the angle in radians, given the sin value.
Gets the angle in radians, given the cosine value.
Gets the angle in radians, given the tangent value.
Converts a given angle in radians to degrees.
Converts a given angle in degrees to radians.
Gets the square root of a given number.
Raises the baseNumber to the specified power.
Rounds a given number to the nearest integer. For example 32.233 will be rounded to 32.0 while 32.566 will be rounded to 33.
Compares two numbers and returns the greater of the two.
Compares two numbers and returns the smaller of the two.
Divides the first number by the second and returns the remainder.
Gets a random number between 1 and the specified maxNumber (inclusive).