Mod (MPI)
From Tapestries MUCK
(Difference between revisions)
Line 1: | Line 1: | ||
- | [[Category:MPI functions]] | + | [[Category:MPI functions]][[Category:MPI Math Functions]] |
=mod= | =mod= | ||
<mpi>{mod:expr1,expr2}</mpi> | <mpi>{mod:expr1,expr2}</mpi> |
Revision as of 00:37, 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.