$round
Rounds a floating-point number to the nearest unit.
Usage
$round[number;unit]Field
Description
Type
Required
Examples
bot.commands.add({
type: "basicCommand",
name: "example",
code: `$round[10.5836763;0]` //Returns 11
})bot.commands.add({
type: "basicCommand",
name: "example",
code: `$round[10.5836763;1]` //Returns 10.6
})Last updated
Was this helpful?