2022年4月21日
摘要: 1、去掉小数点后0 1 public static void main(String[] args) { 2 BigDecimal value = new BigDecimal(1.8500000); 3 BigDecimal noZeros = value.stripTrailingZeros() 阅读全文
posted @ 2022-04-21 14:51 irongzone 阅读(22) 评论(0) 推荐(0)