NumberFormat.getDecimalFormat() just gives you a formatter using a default
format string. If you want to use your own formatting string you have to use
NumberFormat.getFormat(<your string>). In your case you have to use
NumberFormat.getFormat("#,##0.0##"). The symbols "," and "." are special
symbols used by the NumberFormat class for grouping and as decimal
separator. You always have to use these symbols like they are defined in the
JavaDoc for NumberFormat regardless of the target locale you want to use.
The target locale is then responsible for changing "," and "." into the
correct localized versions. For de_DE that would be "." for grouping
(instead of the defined ",") and "," as decimal separator (instead of the
defined ".").
--
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/-/FkaVLeJKYbwJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.