title: not able to convert double value to 2 decimal places
body: <p>I was trying to convert <code>double</code> value to 2 decimal places, by using below two methods.</p>
  
  <p><strong>DecimalFormat</strong></p>
  
  <pre><code>double value = 2.384185791015625E-4;
  DecimalFormat df = new DecimalFormat("###.##");
  System.out.println(df.format(value));
  </code></pre>
  
  <p><strong>Math.round</strong></p>
  
  <pre><code>double value = 2.384185791015625E-4;
  double newValue = Math.round(value*100.0)/100.0;
  System.out.println(newValue);
  </code></pre>
  
  <p>in both cases I am getting <code>0</code> output. I was expecting output to be <code>2.38</code>.
  can anyone suggest how to resolve this issue.</p>