摘要: 1. BigDecimal num1 = new BigDecimal(2.225667);//这种写法不允许,会造成精度损失 2. BigDecimal num2 = new BigDecimal(2);//这种写法是可以的 3. BigDecimal num = new BigDecimal(" 阅读全文
posted @ 2018-07-25 13:57 小魚人 阅读(9528) 评论(0) 推荐(2) 编辑