wrap

Return the remainder of integer division.


Synopsis

val = wrap(value, range)


Description

wrap returns the modulus of value, using range as the modulo; i.e., it will keep value within range by “wrapping” it around.

See also mod which apparently does the same thing.


Arguments


Examples

   wrappedval = wrap(7, 12)

See Also

abs, log, pow, max, mod, min, round, trunc, fwrap