fwrap

Return the wrapped float value within a float range.


Synopsis

val = fwrap(value, range)


Description

fwrap returns the float result of wrapping the value to fit between 0.0 and range; i.e., it will keep value within range by “wrapping” it around.

Note that this is not the same action as wrap, which effectively performs a modulo operation.


Arguments


Examples

wrappedval = wrap(127.234, 11.787)	// returns 9.36399364471

See Also

abs, pow, max, min, wrap