Math Methods:
object.nameOfTheMethod(argument);
Call methods on the object Math:
- Static Methods: arithmetical functions
- Static Methods: trigonometrical functions
- Static Methods: "binary" functions
- Algorithmic Methods
Perform actions on a single unit:
Math.floor(1.9);
Math.ceil(1.1);
Math.round(1.5);
Math.trunc(1.6);
Math.sqrt(9);
Math.cbrt(27);
Math.abs(-4); Math.abs(4);
Math.sign(-9); Math.sign(9);
Math.random();
Math.sin(90);
Math.asin(90);
Math.sinh(90);
Math.asinh(90);
Math.cos(90);
Math.acos(90);
Math.cosh(90);
Math.acosh(90);
Math.tan(90);
Math.atan(90);
Math.tanh(90);
Math.atanh(90);
Math.pow(x, y);
Math.max(x, y...);
Math.min(x, y...);
Math.hypot(x, y...);