norm(aNumber, low, high)

Normalizes a number from another range into a value between 0 and 1. Identical to map(value, low, high, 0, 1); Numbers outside the range are not clamped to 0 and 1, because out-of-range values are often intentional and useful.

Type: function

Parameter(s):

  • aNumber {Number}:

    The value to be normed.

  • low {Number}:

    The lowest value to be expected.

  • high {Number}:

    The highest value to be expected.

Returns:

  • {Number}:

    The normalized value.