Template:Mod

From RationalWiki
Jump to: navigation, search

This template is simple - give it two parameters, and it returns the value of parameter 1 modulo parameter 2 - that is, the leftover after subtracting parameter 2 as many times as possible from parameter 2.

Examples:

{{mod|35|6}} = 5

{{mod|10|1}} = 0 (trivial, of course. All Xmod1 = 0.)

{{mod|93|16}} = 14