$abbreviate
$abbreviate
will allow you to abbreviate large numbers.
Usage
$abbreviate[num;dec?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
num | number | Number to abbreviate. | true |
dec? | number | Decimal between the abbreviate. | false |
Example(s)
This returns: 20k
1client.command({2 name: "abbreviate",3 code: `4 $abbreviate[20000]5 `6});
This returns: 20.0k
1client.command({2 name: "abbreviate",3 code: `4 $abbreviate[20000;1]5 `6});