Difference between revisions of "Mod"
Jump to navigation
Jump to search
(Created page with "Returns the remainder from dividing one specified numerical expression by another. ==== Usage ==== <syntaxhighlight>Mod(Dividend,Divisor)</syntaxhighlight> Where: [[Divid...") |
m |
||
Line 1: | Line 1: | ||
− | Returns the remainder from dividing one specified numerical expression by another. | + | Returns the remainder from dividing one specified numerical expression by another (i.e. the modulus). |
− | + | == Usage == | |
− | <syntaxhighlight>Mod(Dividend,Divisor)</syntaxhighlight> | + | <syntaxhighlight>Mod(Dividend, Divisor);</syntaxhighlight> |
− | Where: | + | Where: |
+ | |||
+ | :'''Dividend''' - a numerical expression. | ||
− | + | :'''Divisor''' - a numerical expression. | |
− | + | == Example == | |
− | <syntaxhighlight>Mod(25,7) | + | <syntaxhighlight>Mod(25, 7);</syntaxhighlight> |
+ | Will return a value of 4. | ||
[[Category:Math and Trig]] | [[Category:Math and Trig]] |
Revision as of 06:16, 9 February 2012
Returns the remainder from dividing one specified numerical expression by another (i.e. the modulus).
Usage
Mod(Dividend, Divisor);
Where:
- Dividend - a numerical expression.
- Divisor - a numerical expression.
Example
Mod(25, 7);
Will return a value of 4.