Skip to content
Math & Text abs

$abs — Absolute value of a number.

Absolute value of a number.

Syntax

$abs[number]

Parameters

  • number (number, required) — The number.

Return Value

  • string.

Usage

$abs[-4.5] → "4.5"

Example

$sendMessage[$abs[-4]]

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.