title: How to set decimals to only 2 digits in Doubles?
body: <p>In my response i am getting the value as <code>80.00000</code></p>
  
  <pre><code>DecimalFormat df = new DecimalFormat("##.##");
  TextField.setText(df.format(Double.parseDouble(custom.getValue())));
  </code></pre>
  
  <p>My problem is i am getting 80.000, i am doing a parseDouble which will return a primitive double type and i am doing a format to this double to <code>2 decimals</code>. </p>
  
  <p>Why am i getting <code>80</code> instead of <code>80.00</code>?</p>
  
  <p>I changed my way and tried with this. </p>
  
  <pre><code>TextField.setText(String.format("%2f",Double.parseDouble(custom.getValue()))); 
  </code></pre>
  
  <p>Now i am geting <code>80.000000</code> instead of <code>80.00</code></p>