php.net |  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
Votes:1
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
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 !
Your email address:
MUST BE VALID
Solve the problem:
35 - 14 = ?
Subscribe to this entry?

 
 [2004-11-09 07:03 UTC] fansyah at yahoo dot com
Description:
------------
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:
---------------
$b=2.135;
echo round($b,2);

Expected result:
----------------
2.14

Actual result:
--------------
2.13

Patches

Pull Requests

History

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

 [2005-02-21 19:59 UTC] sniper@php.net
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-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 09:01:26 2025 UTC