I got strange rounding issue for VAT in Magento. My product set up is * product price incl 20% VAT is 183.59
I added 30 items into basket and it would cost 30 * 183
In the end I found the solution. I changed System > VAT > Tax Calculation Method Based On from Unit price to Row Total and it works, more details here
The issue which I found is in core/store model. I had to rewrite roundPrice method and change rounding precision there.
public function roundPrice($price)
{
return round($price, 4);
}