I am really interested to know, why the following code returns always 7. I am really confused.
$a = (double) ((0.1 + 0.6) * 10); //Output: 7
$b = (int) ((0.1 + 0.6) * 10); //Output: 7
$c = (int) ((0.1 + 0.7) * 10); //Output: 7
output test:
echo ($a == $b && $a == $c); //Output: true