if (abs($dem)=== 0.00){
//true
}

参考链接:http://php.net/manual/en/language.types.float.php