Java BigDecimal 常见用法
BigDecimal bigDecimal1 = new BigDecimal("-1.1"); BigDecimal bigDecimal2 = new BigDecimal(-1.1); System.out.println(bigDecimal1.stripTrailingZeros().toPlainString() + " stripTrailingZeros 去除尾部的0,"); System.