Format Float to n decimal places
Try this this helped me a lot
BigDecimal roundfinalPrice = new BigDecimal(5652.25622f).setScale(2,BigDecimal.ROUND_HALF_UP);
Result will be roundfinalPrice --> 5652.26
Take a look at DecimalFormat. You can easily use it to take a number and give it a set number of decimal places.
Edit: Example
You may also pass the float value, and use:
String.format("%.2f", floatValue);
Documentation