PHP 4.0 Bug #5139: Subtraction among float-point numbers

From: Date: Tue, 20 Jun 2000 07:15:17 +0000
Subject: PHP 4.0 Bug #5139: Subtraction among float-point numbers
Groups: php.dev 
Request: Send a blank email to php-dev+get-21793@lists.php.net to get a copy of this message
From: duxy@leyou.com Operating system: FreeBSD3.4 PHP version: 4.0 Beta 3 PHP Bug Type: Scripting Engine problem Bug description: Subtraction among float-point numbers The PHP version that I'm using is 4.0 Beta 2. And I find a bug as following: <?php echo (692.00-672.68-14.70); #4.6200000000001 echo (692.00-(672.68+14.70));#4.62 ?> The result of the first "echo" is wrong. BTW, Could you tell me where I can learn more about the implementation of float-point numbers in PHP?

« previous php.dev (#21793) next »