Math & Text
trunc
$trunc — Removes the decimal part without rounding (-3.9 becomes -3). The text version is $truncate.
Removes the decimal part without rounding (`-3.9` becomes `-3`). The text version is `$truncate`.
Syntax
$trunc[number]
Parameters
- number (number, required) — The number.
Return Value
- string.
Usage
$trunc[-3.9] → "-3"
Example
$sendMessage[$trunc[3.9]]
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.