Map a value from one range to another.