Difference between revisions of "Mod"

From WikiManual
Jump to: navigation, search
m (Reverted edit of Retard, changed back to last version by Numsgil)
Line 1: Line 1:
 +
Modular Math Operator.  '''BINARY'''
  
 +
Removes two values from the stack.  Performs [http://en.wikipedia.org/wiki/Modular_arithmetic modular arithmetic] on the two values, placing the result onto the stack.
 +
 +
351 69 mod
 +
 +
is the same as (351 mod 69), which is 6.  Thus "351 69 mod" is equivelant to writing "6".

Revision as of 20:15, 10 October 2005

Modular Math Operator. BINARY

Removes two values from the stack. Performs modular arithmetic on the two values, placing the result onto the stack.

351 69 mod

is the same as (351 mod 69), which is 6. Thus "351 69 mod" is equivelant to writing "6".