Calculator
Additional info about calculator.
Introduction
The bot has a built-in calculator that can perform basic mathematical operations.
Functions
Functions use case example: /calc 100 - sin(30) - sqrt(2) + log(2, 8)
| Function | Description | Example |
|---|---|---|
| sqrt(x) | Number root | sqrt(16) |
| cos(x) | Angle cosine | cos(90) |
| sin(x) | Angle sine | sin(30) |
| ctg(x) | Angle cotangent | ctg(45) |
| tg(x) | Angle tangent | tg(45) |
| floor(x) | Rounding down | floor(5.8) |
| ceil(x) | Rounding up | ceil(5.8) |
| random(x, y) | Random number between x and y | random(0, 15) |
| log(x, y) | Logarithm of the base x of the y | log(2, 8) |
Also, you can use the following constants: pi, e.
You can't use comma to specify decimal numbers. Use dot instead.