Re-maps a number from one range to another.