ID:               44277
 Updated by:       [EMAIL PROTECTED]
 Reported By:      felix dot ospald at gmx dot de
-Status:           Open
+Status:           Bogus
 Bug Type:         Math related
 Operating System: Windows XP
 PHP Version:      5.2.5
 New Comment:

Floating point values have a limited precision. Hence a value might 
not have the same string representation after any processing. That also
includes writing a floating point value in your script and directly 
printing it without any mathematical operations.

If you would like to know more about "floats" and what IEEE
754 is, read this:
http://docs.sun.com/source/806-3568/ncg_goldberg.html
 
Thank you for your interest in PHP.




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

[2008-02-28 00:28:34] felix dot ospald at gmx dot de

Description:
------------
This bug was already reported for Linux 3405 in 2000. Is this a bug or
feature?

Reproduce code:
---------------
echo round(-0.1);

Expected result:
----------------
"0"

Actual result:
--------------
"-0"


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


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

Reply via email to