Try this :
Math.round(number*100.0)/100.0;
And also check this link:
java - How to round the double value to 2 decimal points? - Stack Overflow
Type: Posts; User: Tamilarasi
Try this :
Math.round(number*100.0)/100.0;
And also check this link:
java - How to round the double value to 2 decimal points? - Stack Overflow