Bug #14796 Updated: error in calculating with minus
| From: | jimw@php.net | Date: | Wed, 02 Jan 2002 12:38:38 +0000 |
| Subject: | Bug #14796 Updated: error in calculating with minus | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-75585@lists.php.net to get a copy of this message | ||
ID: 14796
Updated by: jimw
Reported By: olimac@sixworx.de
Old Status: Open
Status: Bogus
Bug Type: *General Issues
Operating System: suse linux 7.1
PHP Version: 4.1.0
New Comment:
floating point numbers are not exact. see http://www.php.net/manual/en/language.types.float.php
Previous Comments:
------------------------------------------------------------------------
[2002-01-02 07:30:29] bate@php.net
Its tested with 4.1.1
I tested with
128.1 - 128.0
I think this error just occours if the result >1.0 and the numbers >=128.0.
------------------------------------------------------------------------
[2002-01-02 07:20:10] olimac@sixworx.de
php allways returns after echo 166.3 - 166.6;
-0.29999999999998
but the right result is -0.3
is there a fix for this problem?
thanx
-OLIMAC
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14796&edit=1