title: Format double value?
body: <p>I have following line of code:</p>
  
  <pre><code>DecimalFormat df = new DecimalFormat("#.##"); 
  System.out.println(df.format(23.00));
  System.out.println(Double.parseDouble(df.format(23.00d)));
  System.out.println(df.parse("23.00").doubleValue());
  </code></pre>
  
  <p>First line print <code>23</code> but in 2nd and 3rd line when i convert it to double it prints <code>23.0</code> . showing <code>23.0</code> doesnt makes any sense.</p>
  
  <p>How can i get a <code>double</code> value <code>23</code>.</p>
  
  <p>I checked these <a href="https://stackoverflow.com/questions/8819842/best-way-to-format-a-double-value-to-2-decimal-places">best-way-to-format-a-double-value-to-2-decimal-places</a> <a href="https://stackoverflow.com/questions/703396/how-to-nicely-format-floating-numbers-to-string-without-unnecessary-decimal-0">how-to-nicely-format-floating-numbers-to-string-without-unnecessary-decimal-0</a></p>