Skip to content

$floor

$floor will round a number down to the nearest integer.

Usage

$floor[number]

Parameters

FieldTypeDescriptionRequired
numbernumberThe number of which you want the integer returned of.true

Example(s)

This will calculate the nearest integer of 5.8:

1
client.command({
2
name: "floor",
3
code: `
4
$floor[5.8]` // returns: 5
5
});