title: Format double to 2 decimal places with leading 0s
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2808535/round-a-double-to-2-significant-figures-after-decimal-point">Round a double to 2 significant figures after decimal point</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to format a double to 2 decimal places with leading zeros and there's no luck.
  Here is my code:</p>
  
  <pre><code>Double price = 32.0;
  DecimalFormat decim = new DecimalFormat("#.##");
  Double price2 = Double.parseDouble(decim.format(price));
  </code></pre>
  
  <p>And I want output to be <code>32.00</code> instead I get <code>32.0</code><br>
  Any solutions??</p>