java去掉数字后面的0
摘要:
有些财务业务场景是需要把数字多余的0去掉的。 可以这么写 private String getRealData(BigDecimal num) { if (num == null) { return "0"; } String value = num.stripTrailingZeros().toS 阅读全文
posted @ 2016-09-08 18:00 Snowman-Nunu 阅读(3908) 评论(0) 推荐(0) 编辑