dump($available_funds);
dump($meal_price);
if ($available_funds < $meal_price) {
dd('hit');
return false;
}
$available_funds
and $meal_price
are both 'double' values set to 2.78
Why would the if
statement be hit when the values are the same?
I have attempted to (float)
the variables and floatval()
to try and update the types to see if this would resolve the condition but had no luck.