#39088 [NEW]: round()

From: Date: Mon, 09 Oct 2006 07:54:14 +0000
Subject: #39088 [NEW]: round()
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969374177@lists.php.net to get a copy of this message
From: msajko at yahoo dot com Operating system: Windows XP PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: round() Description: ------------ round(555.305,1) = 555.3 round(555.305,2) = 555.3 !!!? (555.31 is correct) round(555.305,3) = 555.305 problem appears in Windows binary, on debian binary it works just fine Reproduce code: --------------- echo round(555.305,2) ."\n"; echo (round(555.305,2)*1)."\n"; Expected result: ---------------- 555.31 555.31 -- Edit bug report at http://bugs.php.net/?id=39088&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39088&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39088&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39088&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39088&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39088&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39088&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39088&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39088&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39088&r=support Expected behavior: http://bugs.php.net/fix.php?id=39088&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39088&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39088&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39088&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39088&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39088&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39088&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39088&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39088&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39088&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39088&r=mysqlcfg

« previous php.doc (#969374177) next »