2022年8月9日

摘要: Less is more 阅读全文

posted @ 2022-08-09 20:52 无欲无邱女士 阅读(14) 评论(0) 推荐(0)

摘要: ##溢出 ##银行业务不能用浮点数表示 要用BigDecimal 数学工具类 浮点数是有限的,离散,舍入误差,接近但不等于 最好完全使用浮点数进行比较! 例如 点击查看代码 float f1 = 23232322323122f; float f2 = f1 + 1; System.out.print 阅读全文

posted @ 2022-08-09 18:40 无欲无邱女士 阅读(12) 评论(0) 推荐(0)