$abbreviate
Abbreviates large numbers with an acronym symbol to the 2nd decimal point and rounds the last digit.

FUNCTION USAGE

    $abbreviate[number]

Properties:

number - A number to abbreviate. Larger numbers over 1000 will be abbreviated.
The last digit in the response will be rounded up or down. .x0 - .x4 will round down .x5 - .x9 will round up

Example 1: Output will be 100K

1
bot.Command({
2
name: "test",
3
code: `
4
$abbreviate[100000]
5
`
6
})
Copied!

Example 2: Output will be 10M

1
bot.Command({
2
name: "ban",
3
code: `
4
$abbreviate[10000000]
5
`
6
})
Copied!

Example 3: Output will be 2.23K

1
bot.Command({
2
name: "ban",
3
code: `
4
$abbreviate[2225]
5
`
6
})
Copied!

Example 4: Output will be 2.22K

1
bot.Command({
2
name: "ban",
3
code: `
4
$abbreviate[2224]
5
`
6
})
Copied!
Last modified 1mo ago
Copy link
Contents
Properties: