ID:               25157
 Updated by:       [EMAIL PROTECTED]
 Reported By:      skaltura at czmb dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: Linux 2.4.20, Trusted Debian 1.0
 PHP Version:      Irrelevant
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

read the manual on floats again


Previous Comments:
------------------------------------------------------------------------

[2003-08-19 15:14:35] skaltura at czmb dot net

Description:
------------
PHP does an miscalculation,
ie. (584.04 / 2) / 3.14 is not same as 93 (that calculation returns 93)

Reproduce code:
---------------
<?
$a = 93;
$b = 93;
$c = 584.04;
$d = ($c / 2) / 3.14;
if ($a == $b) { echo "a and b matches!\n"; }
if ($d == $a) { echo "d and a matches!\n"; }
echo "a's value is $a AND d's value is $d";
?>


Expected result:
----------------
a and b matches!
d and a matches!
a's value is 93 AND d's value is 93

Actual result:
--------------
a and b matches!
a's value is 93 AND d's value is 93


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=25157&edit=1

Reply via email to