title: magento round subtotal, total and tax
body: <p>I have installed the ET Currency Manager in order to sell products by gramm with prices &lt; 0.01 per gramm.</p>
  
  <p>The problem is that this sometimes leads to subtotals, taxes and totals with half cents...which (apart from the paypal problem) is confusing for the customer and not acceptable</p>
  
  <p>Therefore I am searching for a solution to round the subtotal, tax and grand total value to 2 decimal places.</p>
  
  <p>I know that the ET Currency Manager has the option "exclude from checkout" but that leads to other problems wherefore it is not relevant for this question (if I do not get a solution here I will ask this question seperately)</p>
  
  <p>I managed to round the grand total by changing the following function:</p>
  
  <p>app\code\core\Mage\Sales\Model\Quote\Address\Total\Grand.php</p>
  
  <pre><code>public function collect(Mage_Sales_Model_Quote_Address $address)
      {
          $grandTotal     = $address-&gt;getGrandTotal();
          $baseGrandTotal = $address-&gt;getBaseGrandTotal();
  
          $totals     = array_sum($address-&gt;getAllTotalAmounts());
          $baseTotals = array_sum($address-&gt;getAllBaseTotalAmounts());
  
          $address-&gt;setGrandTotal(round(($grandTotal+$totals),2)); //Modificated
          $address-&gt;setBaseGrandTotal(round(($baseGrandTotal+$baseTotals),2)); //Modificated
          //$address-&gt;setGrandTotal($grandTotal+$totals);  --Original
          //$address-&gt;setBaseGrandTotal($baseGrandTotal+$baseTotals); --Original
          return $this;
      } 
  </code></pre>
  
  <p>Is there a way to simultaneously round the subtotal and tax?
  I tried to do so in the other files in the above mentioned directory but without result.</p>