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
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: 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: Mon Jun 15 03:00:02 2026 UTC