$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

bot.Command({
name: "test",
code: `
$abbreviate[100000]
`
})

Example 2: Output will be 10M

bot.Command({
name: "ban",
code: `
$abbreviate[10000000]
`
})

Example 3: Output will be 2.23K

bot.Command({
name: "ban",
code: `
$abbreviate[2225]
`
})

Example 4: Output will be 2.22K

bot.Command({
name: "ban",
code: `
$abbreviate[2224]
`
})
Copy link