php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3405 when round() rounds a number -1<x<0, then it returns -0 (should be 0)
Submitted: 2000-02-04 12:30 UTC Modified: 2000-03-01 14:40 UTC
From: bjoern at bjoern dot net Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.14 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bjoern at bjoern dot net
New email:
PHP Version: OS:

 

 [2000-02-04 12:30 UTC] bjoern at bjoern dot net
When round() rounds a number -1<x<0, then it returns -0, but -0 doenst exist. It should return 0 only.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-01 14:40 UTC] hholzgra at cvs dot php dot net
will now check the return value of
rint() in the C-code to catch 
negative zero 


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 13 16:01:32 2024 UTC