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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fansyah at yahoo dot com
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 02 06:01:29 2024 UTC