title: Swift - `Scale Number in a Range min - max
body: <p>How can I scale a number to fit in a specified range?
  For example if I have:</p>
  
  <pre><code>Input_min = 10.1;
  Input_max = 750.0;
  
  Range_min = 0.0;
  Range_max = 350.0;
  
  example Input_n = 503.9;
  </code></pre>
  
  <p>How can I make any number to scale in the Range min and max using swift?</p>