BigDecimal a = new BigDecimal("34.560000"); BigDecimal b = a.stripTrailingZeros(); String c = a.stripTrailingZeros().toPlainString();