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.


 * 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 :


 * See also :
 * Template:Floor

ar:قالب:Mod id:Templat:Mod ja:Template:Mod fi:Malline:Mod ru:Шаблон:Mod