Re: [PHP4BETA] bug or feature ???
[email protected] (Andi Gutmans)
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 22 May 2000, Stanislav Malyshev wrote: > AG>> We are using the C library strtod() in order to convert the number to a > AG>> decimal. I see that strtod() uses locale. > AG>> How should this be handled? Should we move to a US locale for the > AG>> conversion? (probably a bit slow). > > Why should we handle this? If someone sets that his decimal point symbol > is ",", he should accept it being "," and not expect it to be "." anymore. > IMHO, that's not much of our problem. Because when we scan the decimal number we look for . and not for locale seperator. Andi