php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #8510 meaning of round() function's 'precision' arg
Submitted: 2001-01-01 22:23 UTC Modified: 2001-01-05 12:37 UTC
From: vorlon at netexpress dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.4 OS: n/a
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: vorlon at netexpress dot net
New email:
PHP Version: OS:

 

 [2001-01-01 22:23 UTC] vorlon at netexpress dot net
The 'precision' parameter that was added to the round() function in PHP 4 is very nice.  It would be nicer if the documentation made it clear how precision was to be interpreted.  Does it mean 'only retain <precision> significant figures', or does it mean 'retain <precision> digits after the decimal point'?  It appears that the latter is intended.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-05 12:37 UTC] hholzgra@php.net
fixed in CVS
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 24 08:00:01 2026 UTC