Codebox Operators imod

imod

Divide two integer values, output the remainder

imod(in1, in2): out1

Arguments:

Arguments

NameTypeDefaultDescription
in1number

The value is divided by the value in the right inlet and the remainder is sent out the outlet.

in2number

The value is stored as the divisor (the value to be divided into the value in the left inlet) for calculating the remainder.

Returns

NameTypeDescription
out1number

The modulo output