vreScaleNumber function

Rescale a number from one range into another range.