该分类记录我转载的文章。
原文地址:https://blog.csdn.net/qwfylwc/article/details/53939906 下面列举让你惊讶的现象,或许你还一直这么用: 1、使用Math.round() double d = 1041.735; d = Math.round(d*100)/100.0; //除以100.0 而不是100 System.out.println(d); //输出...