Skip to content

$truncate

$truncate will remove all values after a decimal point.

Usage

$truncate[number]

Parameters

FieldTypeDescriptionRequired
numbernumberNumber to truncate.true

Example(s)

This will return 775 and remove .9723 from the given value:

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