Methods
The following properties are defined in the Math class.
Static methods
| Name | Description |
|---|---|
| abs | Find the absolute value |
| acos | Find the inverse cosine |
| asin | Find the inverse sine |
| atan | Find the inverse tangent |
| atan2 | Find the angle of the coordinates (x, y) |
| ceil | Find the value rounded up to the nearest whole number |
| cos | Find the cosine |
| exp | Finds the power of e (base of natural logarithm) with the specified value as an exponent |
| floor | Finds the value rounded down to the nearest whole number |
| log | Find the natural logarithm |
| max | Find the maximum value |
| min | Find the minimum value |
| pow | Find exponentiation |
| random | Find a pseudo-random number |
| round | Find the value rounded to the nearest whole number |
| sin | Find the sine |
| sqrt | Find the square root |
| tan | Find the tangent |