double number = 123.456; double roundedNumber = Math.round(number * 100.0) / 100.0; System.out.println(roundedNumber);
==========