« Return to Thread: formatting numbers, decimal divider

Re: formatting numbers, decimal divider

by Axel Hecht :: Rate this Message:

Reply to Author | View in Thread

Jürgen 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
_______________________________________________
dev-i18n mailing list
dev-i18n@...
https://lists.mozilla.org/listinfo/dev-i18n

 « Return to Thread: formatting numbers, decimal divider