class="java"> double dd = 1.00012E5; String s = String.valueOf(dd); BigDecimal db = new BigDecimal(s); s = db.toPlainString(); if (s != null) { if (s.endsWith(".0")) { s = s.substring(0, s.length() - 2); } }