Math
Math Class is a class for calculating mathematics.
Math.abs(x)
Returns the absolute value of a number.
Math.acos(x)
Returns the arccosine (in radians) of a number.
Math.asin(x)
Returns the arcsine (in radians) of a number.
Math.atan(x)
Returns the arctangent (in radians) of a number.
Math.atan2(y, x)
Returns the arctangent of the quotient of its arguments.
Math.ceil(x)
Returns the smallest integer greater than or equal to a number.
Math.cos(x)
Returns the cosine of a number.
Math.E
Euler's constant and the base of natural logarithms.
Math.exp(x)
Returns ex.
Math.floor(x)
Returns the largest integer less than or equal to a number.す
Math.LN10
The natural logarithm of 10.
Math.LN2
The natural logarithm of 2.
Math.log(x)
Returns the natural logarithm (base E) of a number.
Math.LOG10E
The base 10 logarithm of E.
Math.LOG2E
The base 2 logarithm of E.
Math.max(value1 [, value2 [, ...]])
Returns the larger of plural numbers.
Math.min(value1 [, value2 [, ...]])
Returns the smaller of plural numbers.
Math.PI
The circular constant.
Math.pow(x, y)
Returns base to the exponent power.
Math.random()
Returns the value between from 0.0 to 1.0.
Math.round(x)
Returns the value of a number rounded to the nearest integer.
Math.sin(x)
Returns the sine of a number.
Math.sqrt(x)
Returns the square root of a number.
Math.SQRT1_2
The square root of 1/2.
Math.SQRT2
The square root of 2.
Math.tan(x)
Returns the tangent of a number.