PHP 4.0 Bug #9834: Unable to handle double variables
| From: | jan dot wurl at prosales-europe dot com | Date: | Mon, 19 Mar 2001 11:11:29 +0000 |
| Subject: | PHP 4.0 Bug #9834: Unable to handle double variables | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49336@lists.php.net to get a copy of this message | ||
From: jan.wurl@prosales-europe.com
Operating system: Windows 2000
PHP version: 4.0.4pl1
PHP Bug Type: Math related
Bug description: Unable to handle double variables
I try to set a variable with a double value:
$a=2.54;
$b="2.54"
but PHP ignores everything after the point
echo ($a*100) results 200
echo ($b*100) results 200
I tried everything, i thought it might be work (like setting datatype before set the value, ...),
but nothing worked.
Jan Wurl
--
Edit Bug report at: http://bugs.php.net/?id=9834&edit=1