double a = 0.00001234; BigDecimal b = new BigDecimal(String.valueOf(a)); BigDecimal divisor = BigDecimal.ONE; MathContext mc = new MathContext(2); System.out.println(b.divide(divisor, mc));