'PHP bug in exact calc
See the calc:
var_dump((75.2 >= ((94 * 1.8) - 94))); // return false;
var_dump((75.200000000000001 >= ((94 * 1.8) - 94))); // return false;
var_dump((75.20000000000000995 >= ((94 * 1.8) - 94))); // return true;
var_dump((75.20000000000001 >= ((94 * 1.8) - 94))); // return true;
The calculation is exact and this should not happen. What reason happens?
All php version.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
