Template:Mod/doc

Implements the mathematical modulo operator. The returned result is always of the same sign as the modulus or nul, and its absolute value is lower than the absolute value of the modulus. However, this template returns 0 if the modulus is nul (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.


 * Examples with positive integer modulus :


 * Examples with negative integer modulus :


 * Examples with positive non integer modulus :


 * Examples with nul modulus :

ar:قالب:Mod id:Templat:Mod ja:Template:Mod ku:Şablon:Mod fi:Malline:Mod pt:Predefinição:Mod ru:Шаблон:Mod