I have an error checking that checks number amounts. If they don't equal each other it gives an error.
95% of the time it works. When it doesn't I print out both values on the page so I could see what they are. They are identical but PHP says they don't equal and gives an error no matter what you put in.
Does PHP have a glitch in number checking?
Any ideas would be appreciated.
Below is the code.
echo "$amounttot<br>";
echo "$decamount";
if ($numbcheck != "skip")
{ if ($amounttot == "$decamount")
{echo "good";}
else
{$err .= "<tr><td colspan = 3><font color = red size = 3>Your individual restitution amounts do not add up to the total.</font></td></tr>";
$go = "no";}