NAME

mod - modulus command


SYNOPSIS

modval = mod(p0, p1)


DESCRIPTION

mod returns the result of the operation p0 mod p1 (otherwise known as: p0 % p1). mod converts both params to integers.

The wrap command apparently does the same thing.


ARGUMENTS
p0, p1
The parameters used to perform the a mod b (in this case, p0 mod p1) operation. Essentially mod gives the remainder of dividing p0 into p1. Modular (or "clock") arithmetic is very useful in western, 12-note/octave music.


EXAMPLES
   modout = mod(3, 12)

SEE ALSO

abs, log, pow, max, min, round, trunc, wrap