Skip to content

$roundTenth

$roundTenth will round to the next tenth.

Usage

$roundTenth[number;decimalPosition]

Parameters

FieldTypeDescriptionRequired
numbernumberNumber to round.true
decimalPositionnumberHow 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:

1
client.command({
2
name: "roundTenth",
3
code: `
4
$roundTenth[503.6972;2]
5
`
6
});