Bug #15979: When adding 0.01 in a loop, math starts getting incorrect

From: Date: Sun, 10 Mar 2002 04:55:44 +0000
Subject: Bug #15979: When adding 0.01 in a loop, math starts getting incorrect
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-2143@lists.php.net to get a copy of this message
From: josh.anderson@afraid.org Operating system: FreeBSD 4.2 PHP version: 4.1.2 PHP Bug Type: Math related Bug description: When adding 0.01 in a loop, math starts getting incorrect http://freedns.afraid.org/tools/test.phps http://freedns.afraid.org/tools/test.php Here's the output of where the problem starts happening: 4.39 4.4 4.41 4.42 4.4299999999999 4.4399999999999 4.4499999999999 4.4599999999999 I get 4.4299999999999 instead of 4.43 Josh -- Edit bug report at http://bugs.php.net/?id=15979&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15979&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15979&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15979&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15979&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15979&r=support Expected behavior: http://bugs.php.net/fix.php?id=15979&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15979&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=15979&r=submittedtwice

« previous php.bugs (#2143) next »