Math & Text
sign
$sign — Sign of a number: 1, -1 or 0.
Sign of a number: `1`, `-1` or `0`.
Syntax
$sign[number]
Parameters
- number (number, required) — The number.
Return Value
- string.
Usage
$sign[-3] → "-1"
Example
$sendMessage[$sign[-3]]
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.