I have a column in a mysql table that is decimal(6,2). If a null value is stored in that column it gets stored as 0.00. If I print a variable with that value I get the following:
print($var); = 0.00
however the following conditional statement does not evaluate properly:
if($var!=0.00){
print("$var didn't equal 0.00");
}else{
print("$var did equal 0.00");
}
this always evaluates as the second option. Can someone explain what I am doing wrong here?
Any assistance is appreciated.