ID:               41152
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mark at divindedesigns dot ca
-Status:           Open
+Status:           Bogus
 Bug Type:         *Math Functions
 Operating System: linux/windows
 PHP Version:      5.2.1
 New Comment:

round() doesn't change the number, output depends on the value of
"precision" in your php.ini.


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

[2007-04-20 17:09:36] mark at divindedesigns dot ca

Description:
------------
when you round(378240328403284.234) or other large numbers... php
automatically translates it with scientific notation... i'm just
wondering if we can add that as an option only... say
round(#,#,SCIENTIFIC) or whatnot...

i know you can use number_format()... but that's not the intended use
of that function.

Reproduce code:
---------------
<?
echo round(324324434324322324.324,2);
?>

Expected result:
----------------
outputs "324324434324322324.32"

Actual result:
--------------
outputs "3.2432443432432E+17"


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


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

Reply via email to