Name
Wrap -- wrap values (V1.5)
Synopsis
result = Wrap(x, low, high)
Function
Wrap will wrap the result of
x
if
x
is greater than or equal to
high
, or less than
low
. If
x
is less than
low
, then
x-low+high
is returned. If
x
is greater than or equal to
high
, then
x-high+low
is returned.
Inputs
x
source value
low
low value
high
high value
Results
result
result of operation
Show TOC