$a = 0.1;标签:0.9,运算,浮点数,else,PHP,echo From: https://www.cnblogs.com/haoxuanchen2014/p/17563191.html
$b = 0.7;
$c = 0.5;
$d = 0.9;
if ($a + $b == 0.8) {echo '==';} else {echo '!=';} // !=
if ($a + $c == 0.6) {echo '==';} else {echo '!=';} // ==
if ($a + $d == 1) {echo '==';} else {echo '!=';} // ==
if ($b + $c == 1.2) {echo '==';} else {echo '!=';} // ==
参考地址: https://www.cnblogs.com/hld123/p/14848530.html