Map range

From Rosetta Code
Revision as of 15:31, 25 November 2010 by MikeMol (talk | contribs) (Draft task.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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].