Modulo function
The Modulo function determines the remainder from dividing the first parameter by all subsequent parameters.
Returns: number
The remainder from dividing the first parameter by the remaining parameters. If the divisor is zero, returns NaN (not a number).
Parameter: number1
The number to be divided (dividend). This can come from a source node, the result of a function, or a value you specify.
Parameter: number2, [number3-999]
The numbers to divide with (divisor). These can come from source nodes, the results of other functions, or values you specify. At least one divisor parameter is required.
If multiple parameters are specified as divisors, the order of operations is as follows: the remainder returned from the first division operation becomes the dividend for the second operation, and so forth. See Example 2.
Example 1: Using one divisor parameter
modulo(42, 5) = 242 / 5 = 8 R2
Example 2: Using multiple divisor parameters
modulo(61,7,2) = 161 / 7 = 8 R5
5 / 2 = 2 R1