Math methods
.
Math.acos(x>
The arccosine of x is returned.
Math.acosh(x>
The hyperbolic arccosine of x is returned.
Math.asin(x>
The arcsine of x is returned.
Math.asinh(x>
Returns a number's hyperbolic arcsine.
Math.atan(x>
The arctangent of x is returned.
Math.atanh(x>
The hyperbolic arctangent of x is returned.
atan2.math (y, x>
The arctangent of the quotient of its arguments is returned.
Math.cbrt(x>
The cube root of x is returned.
Math.ceil(x>
The lowest integer bigger than or equal to x is returned.
Math.clz32(x>
The number of leading zero bits in the 32-bit integer x is returned.
Math.cos(x>
The cosine of x is returned.
Math.cosh(x>
The hyperbolic cosine of x is returned.
Math.exp(x>
Returns ex, with x being the input and e being Euler's constant (2.718..., the natural logarithm's base>
.
Math.expm1(x>
returns the result of subtracting 1 from exp (x>
.
The greatest integer less than or equal to x is returned by Math.floor(x>
.
The closest single precision float representation of x is returned by Math.fround(x>
.
[x[, y[,...]]] Math.hypot([x[, y[,...]]]>
Returns the square root of the sum of its inputs' squares.
Math.imul(x, y>
returns the result of x and y's 32-bit integer multiplication.
Math.log(x>
returns x's natural logarithm (loge; also, ln>
.
For the integer x, Math.log1p(x>
returns the natural logarithm (loge; sometimes ln>
1 + x.
The base-10 logarithm of x is returned by Math.log10(x>
.
The base-2 logarithm of x is returned by Math.log2(x>
.
Math.max([x, y,...]]>
The biggest of zero or more numbers is returned.
Math.min([x, y,...]]>
The smallest of zero or more numbers is returned.
arithmetic.pow (x, y>
Returns the exponent power y of base x (that is, xy>
.
Math.random(>
generates a value between 0 and 1 that is pseudo-random.
Math.round(x>
returns the rounded integer value of the number x.
Math.sign(x>
returns the x's sign, showing whether it is positive, negative, or zero.
The sine of x is returned by Math.sin(x>
.
The hyperbolic sine of x is returned by Math.sinh(x>
.
The positive square root of x is returned by Math.sqrt(x>
.
The tangent of x is returned by Math.tan(x>
.
The hyperbolic tangent of x is returned by Math.tanh(x>
.
Math.trunc(x>
returns the integer component of x, discarding any fractional digits.