Re: [PHP4BETA] bug or feature ???
[email protected] (Joey)
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <[email protected]> |
I think it goes even beyond that...if you set your locale to use "," as the decimal, he should be able to /count/ on it being "," and we have no right to meddle with it. --Joey Smith Please forgive the long sig: *** Notice To Bulk Emailers: Attention! Pursuant to US Code, Title 47, Chapter 5, Subchapter II, 227, any & all unsolicited commercial e-mail sent to this address is subject to a download and archival fee in the amount of the $1500 US and copies will be forwarded to domain administrators. Emailing denotes acceptance of said terms! 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. > > -- > Stanislav Malyshev [email protected] > +972-3-6139665 > > > > -- > PHP 4.0 Beta Mailing List <http://www.php.net/version4/> > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > To contact the list administrators, e-mail: [email protected] > >