Math.abs(num)
- Returns absolute value (no negative sign) of input.
Math.acos(num)
- Returns inverse cosine of input.
Math.asin(num)
- Returns inverse sine of input.
Math.cbrt(num)
- Returns cube root of input.
Math.ceil(num)
- Returns closest whole number that is greater than or equal to input.
Math.cos(num)
- Returns cosine of input.
Math.exp(num)
- Returns e to the power of input.
Math.floor(num)
- Returns closet whole number that is smaller than or equal to input.
Math.hypot(x, y)
- Returns hypotenuse given the two other sides.
Math.ln(num)
- Returns natural log (base e) of input.
Math.log(base, result)
- Returns power given base and result using logs.
Math.log10(num)
- Returns base 10 log of input.
Math.max(a, b)
- Returns biggest value given two numbers.
Math.min(a, b)
- Returns smallest value given two numbers.
Math.pow(a, b)
- Returns value of first argument raised to the power of the second argument.
Math.random()
- Returns random value between 0 and 1.
Math.round(num)
- Returns closest whole number to input.
Math.sin(num)
- Returns sine of input.
Math.sqrt(num)
- Returns positive square root of input.
Math.tan(num)
- Returns trigonometric tangent of input.
Math.toDegrees(num)
- Converts from radians to degrees.
Math.toRadians(num)
- Converts from degrees to radians.
Math.E
- Returns exponential constant.
Math.PI
- Returns PI.