摘要: 不精确的情况: public class BigDecimalDemo1 { public static void main(String[] args) { System.out.println(0.09 + 0.01); // 0.09999999999999999 System.out.pri 阅读全文
posted @ 2024-11-15 22:52 有空 阅读(19) 评论(0) 推荐(0)