ID: 9834 Updated by: sniper Reported By: [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] [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] [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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]