$sum = ($entry[13] - $entry[10]); echo $sum; echo $entry[13]; echo $entry[10];
this echos out 41 49.99 and 8.05 respectively
yet 49.99 - 8.05 isn't 41
what is wrong?
What happens if you do...
printf("%1.2f\n", $sum);
or
printf("%1.2f\n", $entry[13] + $entry[10]);
If you have bcmath enabled, what happens if you do...
$sum = bcadd($entry[13], $entry[10], 2)
Hank