Map range
Map range is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.
Given two ranges [A1,A2], [B1,B2], and a value within range [A1,A2], map that value to its corresponding position within [B1,B2].