title: Force two decimal places in C#
body: <p>I've this problem and can't find a solution.
  This is super easy and i don't know why can't i find a solution.</p>
  
  <p>Problem: </p>
  
  <ul>
  <li>if a value returns for example "16.60", in c# i'll read "16.6", but i need 0 as well, because of paypal API, wich only accepts a value with no decimal numbers, or if it has to have decimal numbers the minimum and maximum must be 2.</li>
  </ul>
  
  <p>So how can i make this?</p>
  
  <p>i've tried this:</p>
  
  <pre><code>        string value_f = "16,6";
          decimal value_f_d = decimal.Parse(value_f);
          value_f_d = (decimal)Math.Round(value_f_d, 2);
          value_f = value_f_d.ToString("#.##");
          value_f = value_f.Replace(',', '.');
  </code></pre>
  
  <p>i want this output: <strong>16.60</strong>, but gives this: <strong>16.6</strong></p>