Re: [PHP4BETA] bug or feature ???

From: Date: Sun, 21 May 2000 19:42:32 +0000
Subject: Re: [PHP4BETA] bug or feature ???
References: 1 2  Groups: php.version4 
Request: Send a blank email to php-version4+get-15316@lists.php.net to get a copy of this message
We are using the C library strtod() in order to convert the number to a decimal. I see that strtod() uses locale. How should this be handled? Should we move to a US locale for the conversion? (probably a bit slow). Andi At 09:23 PM 5/21/00 +0200, Tobias Johan Karlsen wrote:
At 21:21 21.05.00 +0300, Andi Gutmans wrote:
Please try the attached binaries and let me know if you still have a problem. Thanks, Andi
Tested, but I experience the same problem. Output as follows: G:\PHP\test>php -q test.php 200<br>0<br>0 G:\PHP\test> But, if I change the regional settings to English, or change the decimal symbol (control panel -> Regional settings -> Number) to '.' instead of ',' (which is the norwegian standard), I get the following output: G:\PHP\test>php -q test.php 200<br>0.05<br>10 G:\PHP\test> Hope this helps. -- Tobias
--- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.version4 (#15316) next »