PHP 对比 float 型 发表评论if (abs($dem)=== 0.00){ //true } 参考链接:http://php.net/manual/en/language.types.float.php