float price = 4.30;
// Choose the number of decimal places to work with in case they are different
//than zero and zero value will be removed
DecimalFormat format = new DecimalFormat("0.##");
format.setRoundingMode(RoundingMode.DOWN); // Choose your Rounding Mode
System.out.println(format.format(price));