From: pb at tdcspace dot dk Operating system: w98 PHP version: 4.4.1 PHP Bug Type: *General Issues Bug description: inconsistent ROUND
Description: ------------ This is not directly a dedicated bug - but i will report the behaviour anyway. The ROUND produce no decimals when whole numbers... Syntax: ROUND(float, decimals) so... ROUND(1.345, 2) = "1.35" (OK) but... ROUND(1.000, 2) = "1" (we must to add ".00" to get "1.00") This is somewhat annoying if You want to produce a list with the same number of decimals - You must after a ROUND test on the output and eventually add a "." and "0" 's. -- Edit bug report at http://bugs.php.net/?id=35327&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35327&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35327&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35327&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35327&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35327&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35327&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35327&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35327&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35327&r=support Expected behavior: http://bugs.php.net/fix.php?id=35327&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35327&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35327&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35327&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35327&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35327&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35327&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35327&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35327&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35327&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35327&r=mysqlcfg