Template:Mod/doc

Implements the mathematical modulo operator. The returned result is always of the same sign as the modulus or null, and its absolute value is lower than the absolute value of the modulus. However, this template returns 0 if the modulus is null (this template should never return a division by zero error). This template is not the same as the mod operator in the #expr parser function.

This template can be substituted.


 * Usage :
 * dividend modulus
 * Computes the modulo dynamically.
 * dividend modulus
 * Substitute the template invokation by its computed value when saving an article wiki source.