|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
8 - 5 = ?
Subscribe to this entry?

 [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: Wed Dec 06 01:01:27 2023 UTC