Contents



DH_
ModulusOp

Next

Function:

Applies the modulus operator to an integer for a specified modulus, which gives the remainder of division of the first integer by the modulus, or "a modulo n". Although Float pins have been used for convenience, the operation is defined only for integers, so non-integral inputs are rounded to the nearest integer. The operation is also not defined for a modulus of 0, but the module will just give an output of 0 rather than an error for this.

Left-hand side pins:

Value In - An integer value

Modulus - The integer by which the first integer will be divided.

Value Out - The remainder of division of Value In by the Modulus.

Right-hand side pin:

Value Out - The remainder of division of Value In by the Modulus.