Note that the "lower bounds" of either range may be larger or smaller than the " upper bounds" so the map() function may be used to reverse a range of numbers, ...
arduino.cc