Date: 04/19/01
- Next message: Adam Dickmeiss: "[PHP-DEV] gd, freetype 1"
- Previous message: hholzgra <email protected>: "[PHP-DEV] Bug #10401 Updated: Call to undefined function : get_defined_vars()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 9834
Updated by: sniper
Reported By: jan.wurl <email protected>
Old-Status: Feedback
Status: Closed
Bug Type: Math related
PHP Version: 4.0.4pl1
Assigned To:
Comments:
No feedback.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2001-03-19 11:49:07] sniper <email protected>
Works for me just fine. But I think it's some locale
thingie. You might have ',' as the decimal separator.
Try setting the locale correctly:
setlocale(LC_NUMERIC, "en_US");
or something like that. Or you ',' as the separator.
--Jani
---------------------------------------------------------------------------
[2001-03-19 06:11:28] jan.wurl <email protected>
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
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9834&edit=2
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Adam Dickmeiss: "[PHP-DEV] gd, freetype 1"
- Previous message: hholzgra <email protected>: "[PHP-DEV] Bug #10401 Updated: Call to undefined function : get_defined_vars()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

