Skip to content

$abbreviate

$abbreviate will allow you to abbreviate large numbers.

Usage

$abbreviate[num;dec?]

Parameters

FieldTypeDescriptionRequired
numnumberNumber to abbreviate.true
dec?numberDecimal between the abbreviate.false

Example(s)

This returns: 20k

1
client.command({
2
name: "abbreviate",
3
code: `
4
$abbreviate[20000]
5
`
6
});

This returns: 20.0k

1
client.command({
2
name: "abbreviate",
3
code: `
4
$abbreviate[20000;1]
5
`
6
});