Tuesday, July 12, 2011

Re: NumberFormat and German Locale

You're confusing the syntax of the pattern you give to NumberFormat for parsing, and then the use of that NumberFormat within the context of a locale.
What you *give* to NumberFormat is locale-insensitive: #,##0.0##
When you have that NumberFormat instance, what it does then depends on the current locale: when you format 1234.56 in the de_DE locale, you'll see (if I'm not mistaken) 1.234,56, in the fr_FR locale it'll be 1 234,56 and in the en_US locale it'll be 1,234.56.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/1QXbOz75nHAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate