Skip to content

$modulo

$modulo operation / the remainder when dividing.

Usage

$modulo[num;num]

Parameters

FieldTypeDescriptionRequired
numnumberNumbers to return the remainder of.true

Example(s)

This will return 2 as it’s the remainder of 5 % 3:

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