#20688 [NEW]: Math zero

From: Date: Thu, 28 Nov 2002 01:42:49 +0000
Subject: #20688 [NEW]: Math zero
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-26024@lists.php.net to get a copy of this message
From: xqcheng@mail.xjtu.edu.cn Operating system: windows PHP version: 4.2.3 PHP Bug Type: Math related Bug description: Math zero <?php $temp=-1.0; for($i=0;$i<=10;$i++) { $temp=$temp+0.2; echo "<br>".$temp; } ?> the output is : -0.8 -0.6 -0.4 -0.2 -5.55111512313E-017 0.2 0.4 0.6 0.8 1 1.2 -- Edit bug report at http://bugs.php.net/?id=20688&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20688&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20688&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20688&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20688&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20688&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20688&r=support Expected behavior: http://bugs.php.net/fix.php?id=20688&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20688&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20688&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20688&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20688&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20688&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20688&r=isapi

« previous php.bugs (#26024) next »