Translations:Developers/Price calculation and comparsion/4/en

Depending on the calculations you've done before, the $result variable might have a slightly different value, e.g. 0.69999999. When comparing those values, the result will be "false" instead of the expected "true". As long as your comparison includes smaller (<=) or greater (>=) values as well, this won't be a problem, but if you exactly need to compare with a fixed value, then you must use this approach: