fit01 expression function

Fits a value to the 0-1 range.

All Usage Examples

See also: fit, fit11, fit10

Usage

fit01(num, newmin, newmax)

Returns a number between newmin and newmax that is relative to num in the range between 0 and 1. If the value is outside the 0 to 1 it will be clamped to the new range.

Examples

fit01(.3,5,20)=9.5