php-documentation-list | 2003101
Date: 10/09/03
- Next message: Mehdi Achour: "[PHP-DOC] cvs: phpdoc /en/reference/pgsql/functions pg-connection-status.xml"
- Previous message: didou <email protected>: "[PHP-DOC] #25802 [Opn->Bgs]: User Notes inaccurate"
- In reply to: wonglow at yahoo dot com: "[PHP-DOC] #25801 [NEW]: User Notes inaccurate"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 25801
Updated by: didou <email protected>
Reported By: wonglow at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
Operating System: any
PHP Version: Irrelevant
New Comment:
Hello,
notes != documentation, so please don't submit bugs about them.
Mehdi
PS : the note was deleted
Previous Comments:
------------------------------------------------------------------------
[2003-10-09 05:31:47] wonglow at yahoo dot com
Description:
------------
A note added at "http://www.php.net/manual/en/function.round.php" is
inaccurate
limit0.com
17-Aug-2003 09:58
Here is how to always round up...
$x = (a/b);
$r = round($x);
$d = ($x-$r);
if ($d>0){
$x = ($r+1);
}
.....
The result above will not always round up variable $x.
e.g If $x=0.6777
then $r = 1 and $d = -0.3223
Since $d < 0
$x is still 0.6777. It never round up ,except if $x < 0.5.
I believe ceil() is doing a good job.
------------------------------------------------------------------------
-- Edit this bug report at http://bugs.php.net/?id=25801&edit=1
- Next message: Mehdi Achour: "[PHP-DOC] cvs: phpdoc /en/reference/pgsql/functions pg-connection-status.xml"
- Previous message: didou <email protected>: "[PHP-DOC] #25802 [Opn->Bgs]: User Notes inaccurate"
- In reply to: wonglow at yahoo dot com: "[PHP-DOC] #25801 [NEW]: User Notes inaccurate"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

