title: How to scale a double like 1.9416746607144E+36 down so I can use in a winForms chart?
body: <p>I have an double array of numbers including the following and many more in the similar range.</p>
  
  <p>1.9416746607144E+36, 3.35084834769439E+35, 1.61781076604004E+36, 4.4117087319933E+35, 1.53778814885709E+36, 6.71296251346301E+35, 1.20117826215991E+36 and so on.</p>
  
  <p>How can I scale these down so I can use them to draw a windows forms chart?</p>
  
  <p>I have tryed scaling down by using the following:</p>
  
  <pre><code>    public static double SetSigFigs(double d, int digits)
      {
          double scale = Math.Pow(10, Math.Floor(Math.Log10(Math.Abs(d))) + 1);
  
          return scale * Math.Round(d / scale, digits);
      }
  </code></pre>
  
  <p>This does nothing to the numbers.</p>