ID: 41152 User updated by: mark at divindedesigns dot ca Reported By: mark at divindedesigns dot ca Status: Bogus Bug Type: *Math Functions Operating System: linux/windows PHP Version: 5.2.1 New Comment:
can we change that? these things should be able to be changed on the fly... no? in my mind... round() should do just that... rounding the number... not be translating with scientific notation... i can see if we make that an option to the round()... some may find that useful... but for the rest of us... having super large numbers being translated on the fly into scientific notation, is just a recipe for disaster... Previous Comments: ------------------------------------------------------------------------ [2007-04-20 17:20:51] [EMAIL PROTECTED] round() doesn't change the number, output depends on the value of "precision" in your php.ini. ------------------------------------------------------------------------ [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