OCLOperators Integer::mod ( i : Integer ) : Integer
No edit summary
(Replacing message template with parser tag)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Returns the integer remainder of the division of ''self'' by *i*.
<message>Write the content here to display this box</message>
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 -
In MDriven, we have the mod operator as an infix operator - this means the syntax is like + or -
{| class="wikitable"
{| class="wikitable"
!Expression
!Expression
Line 12: Line 13:
|2
|2
|}
|}
[[Category:OCL Number Operators]]
{{Edited|July|12|2024}}

Latest revision as of 07:47, 17 June 2024

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 94 days ago on 06/17/2024. What links here