ID:               46980
 User updated by:  gimmicklessgpt at gmail dot com
 Reported By:      gimmicklessgpt at gmail dot com
 Status:           Open
 Bug Type:         Math related
 Operating System: Linux
 PHP Version:      5.2.8
 New Comment:

additional note: 

while 0.145 rounds to 0.14 (incorrect)
0.155 rounds to 0.16 (correct)


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

[2008-12-31 01:57:20] gimmicklessgpt at gmail dot com

Description:
------------
When rounding, it will round incorrectly on one certain instance for
sure. when rounding 0.145 with a precision of 2 it comes up with 0.14

Reproduce code:
---------------
echo round(0.145,2);

Expected result:
----------------
0.15

Actual result:
--------------
0.14


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


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

Reply via email to