PHP 4.0 Bug #9411 Updated: Arithmetic error

From: Date: Thu, 22 Feb 2001 21:05:47 +0000
Subject: PHP 4.0 Bug #9411 Updated: Arithmetic error
Groups: php.dev 
Request: Send a blank email to php-dev+get-47286@lists.php.net to get a copy of this message
ID: 9411 Updated by: derick Reported By: robburne@hotmail.com Old-Status: Open Status: Closed Bug Type: *Regular Expressions Assigned To: Comments: This is normal floating point math behavior Previous Comments: --------------------------------------------------------------------------- [2001-02-22 15:45:55] robburne@hotmail.com Hi I am not sure if I have found a bug - what do you think.......? Consider this: $var1 = -0.32 + (0.1*3.2) This should give var1 the value 0, instead it gives 5.5511151231258E-17 Interestingly if you increase -0.33 and 3.3 respectively it gives the correct answer. Werid! Rob Burne robburne@hotmail.com --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9411&edit=2

« previous php.dev (#47286) next »