Tax-inclusive pricing: tax amount is wrong due to double rounding

I had to set the floating precision to 2 and the currency precision to 4, beside I had to setup all fields related to Sales detail report to 2 digit. But another problem has appeared.