String str = "3.7032120160831E+17"; BigDecimal dec = new BigDecimal(str); System.out.println(dec.toPlainString());