|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30729 error at round() function
Submitted: 2004-11-09 07:03 UTC Modified: 2005-02-21 19:59 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: fansyah at yahoo dot com Assigned:
Status: No Feedback Package: Math related
PHP Version: 4.3.9 OS: win32 only
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: fansyah at yahoo dot com
New email:
PHP Version: OS:


 [2004-11-09 07:03 UTC] fansyah at yahoo dot com
i have fraction 2.135 or 2.155 or 2.175 or 2.195 with around() function like this example:
around(2.135,2) with result 2.13 it should be 2.14

Reproduce code:
echo round($b,2);

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-24 01:30 UTC]
Works fine within Linux...

 [2005-02-21 19:59 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 08 07:01:27 2023 UTC