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
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: 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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 13 10:00:02 2026 UTC