The Math object provides common math functionality through a collection of static functions on the object.
Returns the absolute value of a number.
Returns the absolute value of a number.
Returns the arc cosine of a number.
Returns the arc cosine of a number, where number must be between -1 and 1. If number is not between -1 and 1, the function returns NaN. Param: The number for which to return the arc cosine.
Returns the arc sine of a number.
Returns the arc sine of a number, where number must be between -1 and 1. If number is not between -1 and 1, the function returns NaN.
Returns the arc tangent of a number.
Returns the arc tangent of a number.
Returns the arc tangent of y/x.
Returns the arc tangent of y/x.
Returns the smallest integer greater than the number.
Returns the smallest integer greater than a number.
Returns the cosine of a number.
Returns the cosine of a number.
Returns e to the power of a number.
Returns e to the power of a number.
Returns the largest integer less than a number.
Returns the largest integer less than a number.
Returns the natural logarithm of a number.
Returns the natural logarithm of a number, when the number is greater than 0. If the number is less than 0, the function returns NaN. Param: The number for which to find the natural logarithm.
The maximum number of a series of numbers.
Returns the maximum number of a series of input numbers, specified by num_0, ..., num_n. If no input numbers are specified, the function returns -Infinity.
The minimum number of a series of numbers.
Returns the minimum number of a series of input numbers, specified by num_0, ..., num_n. If no input numbers are specified, the function returns +Infinity.
Returns base to the power of exponent.
Returns base to the power of exponent.
Returns a random number between 0 and 1.
Returns a random number between 0 and 1.
Returns the integer nearest to the specified number.
Returns the integer nearest to the specified number. If the given number is exactly half way between two integers, the function will round up, i.e. X.5 becomes X+1.
Returns the sine of a number.
Returns the sine of a number.
Returns the square root of a number.
Returns the square root of a number. If the number is less than 0, the function returns NaN.
Returns the tangent of a number.
Returns the tangent of a number.