OCLOperators Integer::mod ( i : Integer ) : Integer
No edit summary
No edit summary
Line 12: Line 12:
|2
|2
|}
|}
[[Category:OCLOperators]]
[[Category:OCL Number Operators]]
[[Category:OCL Number Operators]]

Revision as of 05:57, 20 April 2023

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
This page was edited 95 days ago on 02/10/2024. What links here