#46613 [NEW]: 55.76 value wrong interpreted
| From: | nylas2u at yahoo dot com | Date: | Wed, 19 Nov 2008 13:18:31 +0000 |
| Subject: | #46613 [NEW]: 55.76 value wrong interpreted | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-131104@lists.php.net to get a copy of this message | ||
From: nylas2u at yahoo dot com
Operating system: Windows XP
PHP version: 5.2.6
PHP Bug Type: MySQL related
Bug description: 55.76 value wrong interpreted
Description:
------------
I have an apache+php+mysql server. If i store in one field this value :
55.76 and after that reapitly decreasing this value to zero, after the las
decrease i never can make the value to be zero.
I over verified my script it works in this way with any value like 12.28
even when using 55.76005 but never for 55.76
Reproduce code:
---------------
Example :
55.76 - 10 = 44.76
44.76 - 33 = 11.76
11.76 - 11.76 = 1.17... * E-15
Expected result:
----------------
of course that expected result should be zero
--
Edit bug report at http://bugs.php.net/?id=46613&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46613&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46613&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46613&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46613&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46613&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=46613&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46613&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46613&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46613&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46613&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46613&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=46613&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=46613&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46613&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46613&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46613&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46613&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46613&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46613&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46613&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46613&r=mysqlcfg