public static boolean isEquals(double d1, double d2) {
double z = Math.abs(d1 - d2);
return z <0.00001;
}
本文标题:Android之判断浮点数是否相同
本文链接:https://www.haomeiwen.com/subject/jvhcvhtx.html
网友评论