摘要: BigDecimal 原生提供了 stripTrailingZeros 方法可以实现去掉末尾的 0,然后使用 toPlainString 可以输出数值,注意这里如果使用 toString() 会变成科学计数法输出 System.out.println( new BigDecimal("100.000 阅读全文
posted @ 2018-05-21 14:31 张倩要好好学习 阅读(964) 评论(0) 推荐(0) 编辑