title: How to prevent double from rounding up to two decimal
body: <p>I'm trying to calculate a percentage(9% tax) of a item</p>
  
  <pre><code>double amount = 55.4;
  double total = amount * 0.09;
  
  System.out.printf ("%f \n", total);
  System.out.printf ("%.2f \n", total);
  </code></pre>
  
  <p>Returns </p>
  
  <p>4.986000 </p>
  
  <p>4.99 </p>
  
  <p>How do I make it return 4.98?</p>
  
  <p>Thanks!</p>