$roundTenth
$roundTenth will round to the next tenth.
Usage
$roundTenth[number;decimalPosition]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| number | number | Number to round. | true |
| decimalPosition | number | How many numbers after the comma will be returned. | true |
Example(s)
This will return 503.70 as itβs the nearest number to 503.6972:
1client.command({2 name: "roundTenth",3 code: `4 $roundTenth[503.6972;2]5 `6});