Template:Mod

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationpurge ]

{{mod|n|(mod x)}} (x, the 2nd parameter, is the "modulus")

For example,

  • {{Mod|2|3}}

results in

  • 2

while

  • {{Mod|3|2}}

results in

  • 1

0-6 (mod 5):

  • 0, 1, 2, 3, 4, 0, 1, ...

See also