Patch numeric-test.txt for Variables related Bug #54458
Patch version 2011-04-03 15:36 UTC
Return to Bug #54458 |
Download this patch
Patch Revisions:
Developer: cs.luizeduardo@hotmail.com
$numero = "1.1";
if (intval($numero * 100) == $numero * 100)
{
echo intval($numero * 100) . ":" . $numero * 100 . "<br/>";
echo "Number OK!";
} else {
echo intval($numero * 100) . ":" . $numero * 100 . "<br/>"; //Return 110:110 (same) but the comparison has fail
echo "The number shoud contains 2 decimal places";
}
|