Home
About
Policies
FAQ
Forums
Registration
Password Recovery

Mod (MPI)

From Tapestries MUCK

(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
-
[[Category:MPI functions]][[Category:MPI Math Functions]]
+
[[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.
Personal tools
Namespaces
Variants
Actions
navagation
information
wiki
Toolbox