How to do rounding in Android : I want to calculate the bill where need to do some rounding in android.

What i expect is:

it should be nearest 10 cents. e.g:

10.17 -> 10.20 (round up)

10.11 -> 10.10 (round down)

I have tried to use:
                
    grandTotal = Double.valueOf(String.format(Locale.ENGLISH, "%.2f", grandTotal));

but it will occur error when the total look like 12.15, 14.65, 19.85. 

By right, it should round up, but my result shows it round down. 


Can anyone advise me to solve this problem? Thanks a lot!
