Skip to content

mapValueList()

Convert a list of numbers from one range to their matching places in another range.

mapValueList(valueList, minValue, maxValue, minResult, maxResult)

Like mapValue(), but for a whole list, so each number must lie within the source range. A new list is returned; the original list is left unchanged.

Parameters

mapValueList(valueList, minValue, maxValue, minResult, maxResult)
Parameter Type Default Description
valueList list[int or float] required The numbers to convert.
minValue int or float required The low end of the source range (inclusive).
maxValue int or float required The high end of the source range (inclusive).
minResult int or float required The low end of the destination range (inclusive).
maxResult int or float required The high end of the destination range (inclusive).

Returns

return mappedList

Value Type Description
mappedList list[int or float] Each number's matching place in the destination range.