摘要: 1.Equality tests should not be made with floating point value 代码举例: if (result == num) //result和num均为double 之间比较会有精度损失 解决:BigDecimal data1 = new BigDe 阅读全文
posted @ 2017-12-08 13:52 阿童木MMMMM 阅读(7357) 评论(1) 推荐(0) 编辑