mod: Difference between revisions
Jump to navigation
Jump to search
True Hitoare (talk | contribs) (Added previously undocumented function) |
No edit summary |
||
Line 1: | Line 1: | ||
THIS FUNCTION DOES NOT EXIST IN MAPTOOL. | |||
{{MacroFunction | {{MacroFunction | ||
|name=mod | |name=mod |
Revision as of 19:53, 29 October 2014
THIS FUNCTION DOES NOT EXIST IN MAPTOOL.
mod() Function
Returns the result of the modulo operation between the two numbers, which represents the remainder after a division operation.
Usage
[h: val = mod(dividend,divisor)]
Examples
[r: mod(14,6)]
Returns 2.
[r: mod(10,5)]
Returns 0.
[r: mod(-13,4)]
Returns 3.
[r: mod(16.4,7)]
Returns 2.4.
[r: mod(16,7.5)]