PHP 4.0 Bug #4676: Incorrect float calculation 5.5/2=2.5 (instead 2.75)
| From: | phaigner at mbs42 dot de | Date: | Mon, 29 May 2000 17:50:58 +0000 |
| Subject: | PHP 4.0 Bug #4676: Incorrect float calculation 5.5/2=2.5 (instead 2.75) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-19700@lists.php.net to get a copy of this message | ||
From: phaigner@mbs42.de
Operating system: Windows98, PSW 4.0
PHP version: 4.0 Release Candidate 2
PHP Bug Type: Misbehaving function
Bug description: Incorrect float calculation 5.5/2=2.5 (instead 2.75)
<HTML>
<BODY>
<?
echo "5.5/3=" . 5.5/3 . " ---> correct<br>";
echo "5.5/2=" . 5.5/2 . " ---> result is 2.5 on Win98/PWS, should be 2.75 ";
?>
</BODY>
</HTML>