Function Block MOD

The Function Block MOD calculates the Modulo (Division with Remainder) from the 1st input.

Attention: A division by 0 causes the Function Block not to be calculated. The output variable remains at its last value.

Note: This Function Block can have more than two inputs. You can right-click on the Function Block to add another input.

Inputs

Values with numbers are expected at the inputs. The value of a string is attempted to be converted into a number (Integer). The boolean value TRUE is converted into a 1.

Note: Also see the article String Conversion to Numbers, if you are working with strings.

Output

The output returns the result of all inputs as an integer or floating-point number.

See Also