BigDecimal c=new BigDecimal(10.000000); System.out.println(c.stripTrailingZeros().toPlainString()); 打印结果为:10