$fooValue = 100.68; $cowValue = 100.67; $diffValue = $fooValue - $cowValue; if($diffValue <= 0.01) { echo("success"); } else { echo("error"); }
This will show a โmistakeโ.
I know what to do in Java. But I am not good at PHP, especially with this calculation of things.
Please help me. I mean, how to succeed?
source share