“大于”“小于”“等于”比较 float v1 = 1.0; float v2 = 1.0; 两数并不满足v1 >= v2 或者 v1 <= v2;只能用 abs(v1 - v2) >= 1e-7 abs(v1 - v2) <= 1e-7