MathContext mathContext = new MathContext(5,RoundingMode.HALF_DOWN); System.out.println(new BigDecimal(100.4767,mathContext));