Difference between revisions of "Template:Modulo"
Jump to navigation
Jump to search
Kevin Wang (talk | contribs) m |
Kevin Wang (talk | contribs) m |
||
| Line 5: | Line 5: | ||
Named "Modulo" instead of "Mod" to avoid ambiguity. | Named "Modulo" instead of "Mod" to avoid ambiguity. | ||
| − | See also: [[Template:Add|Add]], [[Template: Multiply| Multiply]] | + | See also: [[Template:Add|Add]], [[Template: Multiply| Multiply]], [[Template: MaybeVar| MaybeVar]] |
<pre> | <pre> | ||
Latest revision as of 18:42, 14 December 2025
Template documentation
Shorthand for computing the modulus of two variables: "{{#expr:{{MaybeVar|{{{1}}}}} mod {{MaybeVar|{{{2|}}}|1}}}}"
Named "Modulo" instead of "Mod" to avoid ambiguity.
See also: Add, Multiply, MaybeVar
{{#vardefine:x|10}}{{#vardefine:y|3}}
{{Modulo|x|y}}, {{Modulo|5|y}}, {{Modulo|x|2}}, {{Modulo|9|5}}
1, 2, 0, 4