$round
Rounds the number up or down to the nearest whole number.

FUNCTION USAGE

  • $round[number]

Properties:

number - The number the function will be rounding.
Example 1: Rounds the number down to 5
1
bot.Command({
2
name: "test",
3
code: `
4
$round[5.49]
5
`
6
})
Copied!
Example 2: Rounds the number up to 6
1
bot.Command({
2
name: "test",
3
code: `
4
$round[5.5]
5
`
6
})
Copied!
Last modified 6mo ago
Copy link
Contents
Properties: