Examples:
mod1(4,3)
returns
1. mod1(3,3)
returns 3, but mod(3,3)
returns 0 (where
mod
is the built-in modulo operator).
function mod1 extends Modelica.Icons.Function; input Integer num "Dividend"; input Integer den "Divisor"; output Integer index "Remainder with 1-based indexing"; end mod1;