OCLOperators Integer::mod ( i : Integer ) : Integer
This page was created by Peter on 2019-12-18. Last edited by Edgar on 2025-01-20.
Write the content here to display this box
Returns the integer remainder of the division of self by *i*.
In MDriven, we have the mod operator as an infix operator - this means the syntax is like + or -
Expression | Result |
---|---|
3 mod 2 | 1 |
11 mod 3 | 2 |