Math & Text
logarithm
$logarithm — Logarithm of a positive number, natural by default. ($log is already used for logs.)
Logarithm of a positive number, natural by default. (`$log` is already used for logs.)
Syntax
$logarithm[number;(base)]
Parameters
- number (number, required) — Must be positive.
- base (number, optional) — Positive and not 1. Default e.
Return Value
- string.
Usage
$logarithm[100;10] → "2"
Example
$sendMessage[$logarithm[1000;10]]
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.