#30462 [NEW]: round() error
| From: | haafiz at ezwebsolutions dot ca | Date: | Sun, 17 Oct 2004 02:14:18 +0000 |
| Subject: | #30462 [NEW]: round() error | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-67674@lists.php.net to get a copy of this message | ||
From: haafiz at ezwebsolutions dot ca
Operating system: Linux
PHP version: 4.3.8
PHP Bug Type: *General Issues
Bug description: round() error
Description:
------------
two variable, $x[$g] and $y[$g]...
serialize($x[$g]) returns: i:34;
serialize($y[$g]) returns: i:43;
but
serialize(round($x[$g]/$y[$g], 5)) returns:
d:0.7907000000000000028421709430404007434844970703125;
--
Edit bug report at http://bugs.php.net/?id=30462&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30462&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30462&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30462&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30462&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30462&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30462&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30462&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30462&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30462&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30462&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30462&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30462&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30462&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30462&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30462&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30462&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30462&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30462&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30462&r=mysqlcfg