title: C# double formatting align on decimal sign
body: <p>I align numbers with various number of decimals so that the decimal sign aligns on a straight row. This can be achevied by padding with spaces, but I'm having trouble.</p>
  
  <p>Lays say I want to align the following numbers:
  0
  0.0002
  0.531
  2.42
  12.5
  123.0
  123172</p>
  
  <p>This is the result I'm after:</p>
  
  <pre><code>     0
       0.0002
       0.531
       2.42
      12.5
     123.0
  123172
  </code></pre>