divide除不尽报错

解决办法.divide(new BigDecimal(1200), 2, BigDecimal.ROUND_HALF_UP)

除某数的时候设置保留小数位

posted @ 2018-02-02 10:14  老鸟在飞  阅读(216)  评论(0)    收藏  举报