BigDecimal bi = new BigDecimal("201.050");
//bi.stripTrailingZeros().toPlainString()都加上了才能达到效果
System.out.println(bi.stripTrailingZeros().toPlainString());
bi.stripTrailingZeros();
System.out.println(bi);
BigDecimal bi = new BigDecimal("201.050");
//bi.stripTrailingZeros().toPlainString()都加上了才能达到效果
System.out.println(bi.stripTrailingZeros().toPlainString());
bi.stripTrailingZeros();
System.out.println(bi);