Skip to content

$abs

$abs returns the absolute value of the number.

Usage

$abs[number]

Parameters

FieldTypeDescriptionRequired
numbernumberThe number.true

Example(s)

This will return the absolute value of -151.5, which is 151.5:

1
client.command({
2
name: "abs",
3
code: `$abs[-151.5]`
4
});