PHP 4.0 Bug #9411: Arithmetic error

From: Date: Thu, 22 Feb 2001 20:45:55 +0000
Subject: PHP 4.0 Bug #9411: Arithmetic error
Groups: php.dev 
Request: Send a blank email to php-dev+get-47285@lists.php.net to get a copy of this message
From: robburne@hotmail.com Operating system: Windows 98 PHP version: 4.0.4pl1 PHP Bug Type: *Regular Expressions Bug description: Arithmetic error 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 -- Edit Bug report at: http://bugs.php.net/?id=9411&edit=1

« previous php.dev (#47285) next »