public class Main { public static void main(String[] args) { double total = 46.565; double roundtotal = Math.round(total * 100.0) / 100.0; System.out.println(total +" rounded to 2 places is "+roundtotal); }}