#21459 [Opn->Bgs]: converting float to int failed sometime
ID: 21459
Updated by: georg@php.net
Reported By: bibifoc23@yahoo.fr
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: linux and windows
PHP Version: 4.3.0
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2003-01-06 05:17:00] bibifoc23@yahoo.fr
<?php
$nb = (15.2 - 15) * 100;
echo $nb."\n";
echo (int)$nb;
?>
The output should be 20 and 20, but it's 20 and 19 !!!!
this strange behavior does not appear for all value.
I test on Redhat 6.2 and windows 2000 SP3
I think there was a link to another bug n°21458
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21459&edit=1
Thread (3 messages)