math:mod() Query Function

Calculates the floor modulus of field value and the divisor, e.g. x mod y where y is the divisor and x is a field. Both the field or divisor are floor rounded before the calculation.

Parameters

Name

Type

Required

Default

Description

field

string

Yes

The name of the input field.

as

string

No

_mod

The name of the output field.

divisor

number

Yes

The divisor to use, e.i. x mod divisor.

The implied parameter is field.