Re: formatting numbers, decimal divider
Axel Hecht <[email protected]> Tue, 01 Jul 2008 15:21:39 +0200
| Newsgroups | gmane.comp.mozilla.internationalization |
|---|---|
| Message-ID | <[email protected]> |
J=FCrgen Herz wrote: > Hello! > = > I'm writing an extension in which some numbers are output. But in some > countries the decimal divider is a comma, in others a point. Is there > a standard way to get numbers formatted according to the browser > locale? > = > Regards, > Juergen new Number() and then toLocaleString() uses the OS locale, that's not = really what you want, I guess? Axel