Mod (MPI)
From Tapestries MUCK
(Difference between revisions)
Line 1: | Line 1: | ||
- | [[Category: | + | [[Category:functions (MPI)]][[Category:Math Functions (MPI)]] |
=mod= | =mod= | ||
<mpi>{mod:expr1,expr2}</mpi> | <mpi>{mod:expr1,expr2}</mpi> |
Latest revision as of 01:40, 31 March 2007
mod
{mod:expr1,expr2}
Returns the leftover remainder of expr1 divided by expr2.
If more than two arguments are given, then the first arguments is modded by the second, then the result of that would be modded by the third, and so on and so forth.
For example:
{mod:91,20,3}would be read as 91 % 20 % 3, and a result of 2 would be returned.