Bug #17787 Updated: integer/double problem
| From: | derick@php.net | Date: | Sun, 16 Jun 2002 18:16:14 +0000 |
| Subject: | Bug #17787 Updated: integer/double problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-10758@lists.php.net to get a copy of this message | ||
ID: 17787
Updated by: derick@php.net
Reported By: j.neubert@21torr.com
-Status: Open
+Status: Bogus
Bug Type: Math related
Operating System: Windows NT 5.0 build 2195
PHP Version: 4.1.2
New Comment:
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php
Thank you for your interest in PHP.
See also:
http://www.php.net/manual/en/language.types.float.php#language.types.float
Previous Comments:
------------------------------------------------------------------------
[2002-06-16 11:49:13] j.neubert@21torr.com
$f = 2.26;
$g = $f*100;
echo(intval($g)."::".$g."<br>");
//output = 225::226
$f = 2.26;
$g = $f*1000/10;
echo(intval($g)."::".$g."<br>");
//output = 226::226
could anybody explain this to me
i also tested on Linux / php version 4.0.6
as far as i know 2.26 is the only double value
creating this bug...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17787&edit=1