ID:               24828
 Updated by:       [EMAIL PROTECTED]
 Reported By:      christophe dot bidaux at netcourrier dot com
-Status:           Assigned
+Status:           Closed
 Bug Type:         Math related
 Operating System: Windows 98SE
 PHP Version:      4CVS-2003-07-27 (stable)
 Assigned To:      edink
 New Comment:

Fixed in the lates snapshot from snaps.php.net.


Previous Comments:
------------------------------------------------------------------------

[2003-07-27 06:34:19] christophe dot bidaux at netcourrier dot com

Description:
------------
the round() function doesn't give me the results described in the
documentation example.


Reproduce code:
---------------
// from the documentation example

$foo = round( 3.4 );   // $foo == 3.0
var_dump($foo);

$foo = round( 3.5 );   // $foo == 4.0
var_dump($foo);

$foo = round( 3.6 );   // $foo == 4.0
var_dump($foo);


Expected result:
----------------
float(3) float(4) float(4)

(PHP Version 4.3.3RC1 version)

Actual result:
--------------
float(3) float(3) float(3)

(PHP Version 4.3.3RC2-dev (Jul 27 2003 10:11:04) version)


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24828&edit=1

Reply via email to