摘要: 第一种:b.equals(BigDecimal.ZERO); 第二种b.compareTo(BigDecimal.ZERO)==0,可以比较是否等于0,返回true则等于0,返回false,则不等于0 第一种比较会出问题,比如Bigdecimal b = new Bigdecimal(“0”) 和 阅读全文
posted @ 2022-09-15 18:25 r1-12king 阅读(3245) 评论(0) 推荐(0) 编辑