Ask a Question related to PHP Development, Design and Development.
-
edink@php.net #1
#24828 [Asn->Csd]: round() function doesn't round !
ID: 24828
Updated by: [email]edink@php.net[/email]
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 [url]http://bugs.php.net/?id=24828&edit=1[/url]
edink@php.net Guest
-
sharedobject second round does not function :S
Hello there i have this code with two buttoms. First the sharedobject is empty.. (trace undefined) then i add a attribute to the sharedobject (... -
Using the round function
I have this placed in my code <%Response.write(Session("MembershipCost"))%> the number it contains is 605 how do i use the round Function to... -
#24876 [NEW]: Round does not round properly
From: jeff at tmtrading dot com Operating system: Redhat 8.0 PHP version: 4CVS-2003-07-30 (stable) PHP Bug Type: Math related... -
#24828 [Opn->Asn]: round() function doesn't round !
ID: 24828 Updated by: iliaa@php.net Reported By: christophe dot bidaux at netcourrier dot com -Status: Open... -
#24828 [NEW]: round() function doesn't round !
From: christophe dot bidaux at netcourrier dot com Operating system: Windows 98SE PHP version: 4CVS-2003-07-27 (stable) PHP Bug...



Reply With Quote

