I'm using php5.6 and something is wrong with the code below
$a = (float)4.2;
$b = (float)1.4*3; // But 2.1*2 works
if ($b === $a) {
die("Equal 1");
}
else if ($b == $a) {
die("Equal 2");
}
else {
die("Not Equal");
}
The result always is "Not Equal"
Many thanks!!!