#46613 [Com]: 55.76 value wrong interpreted

From: Date: Wed, 19 Nov 2008 13:21:13 +0000
Subject: #46613 [Com]: 55.76 value wrong interpreted
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-131105@lists.php.net to get a copy of this message
ID: 46613 Comment by: nylas2u at yahoo dot com Reported By: nylas2u at yahoo dot com Status: Open Bug Type: MySQL related Operating System: Windows XP PHP Version: 5.2.6 New Comment: I also whant to clarify that the value is tored in an mysql field, and from mysql operation seems to be correct but using php script i have this problem Previous Comments: ------------------------------------------------------------------------ [2008-11-19 13:18:30] nylas2u at yahoo dot com 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 this bug report at http://bugs.php.net/?id=46613&edit=1

« previous php.bugs (#131105) next »