Codebox Operators mod

mod

Divide two values, output the remainder

mod(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

Aliases

  • %