$truncate
Drops off the numbers after the decimal and just leaves the whole number.

FUNCTION USAGE

  • $truncate[number]

Properties:

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