$floor
$floor
will round a number down to the nearest integer.
Usage
$floor[number]
Parameters
Field | Type | Description | Required |
---|---|---|---|
number | number | The number of which you want the integer returned of. | true |
Example(s)
This will calculate the nearest integer of 5.8
:
1client.command({2 name: "floor",3 code: `4 $floor[5.8]` // returns: 55});