#20440 [Opn->Bgs]: wrong output for simple calculation
| From: | derick@php.net | Date: | Fri, 15 Nov 2002 08:20:15 +0000 |
| Subject: | #20440 [Opn->Bgs]: wrong output for simple calculation | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-24954@lists.php.net to get a copy of this message | ||
ID: 20440
Updated by: derick@php.net
Reported By: wico@cnh.nl
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: linux
PHP Version: 4.2.3
New Comment:
Read the part about Floating Point precision in our manual:
http://www.php.net/manual/en/printwn/language.types.float.php
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-11-15 02:18:31] wico@cnh.nl
Try:
<?
die(209 - 208.17);
?>
outputs:
0.83000000000001
should be just:
0.83
Gr,
Wico
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20440&edit=1