PHP 4.0 Bug #8164: weird subtraction result

From: Date: Fri, 08 Dec 2000 11:23:13 +0000
Subject: PHP 4.0 Bug #8164: weird subtraction result
Groups: php.dev 
Request: Send a blank email to php-dev+get-40547@lists.php.net to get a copy of this message
From: c.becker@provi.de Operating system: SuSE Linux 6.3 PHP version: 4.0.0 PHP Bug Type: Math related Bug description: weird subtraction result I don't know, if this is a Math related problem, it is a simple subtraction problem. If I type this $one = "555.6"; $two = "555.5"; $result = $one - $two; echo $result; the result in my browser is 0.10000000000002 This occurs with more numbers than above. So, what is my problem? -- Edit Bug report at: http://bugs.php.net/?id=8164&edit=1

« previous php.dev (#40547) next »