I can't get the NumberFormat working, it seems like it can't parse its
own output.

I have copied following from the watch-panel in Eclipse:
/*
 * NumberFormat decimalFormat =
com.google.gwt.i18n.client.NumberFormat.getDecimalFormat();
 */
"decimalFormat.format(1234.5)"= "1 234,5"
"decimalFormat.parse("1 234,5")" => java.lang.NumberFormatException!?
"decimalFormat.parse("1.234,5")" => java.lang.NumberFormatException
"decimalFormat.parse("1,234.5")" => java.lang.NumberFormatException
"decimalFormat.parse("1 234.5")" => java.lang.NumberFormatException
"decimalFormat.parse("1234,5")"= 1234.5
"decimalFormat.getPattern()"= "#,##0.###"

NumberConstants of my locale:
/*
 * NumberConstants numberConstants = GWT.create
(NumberConstantsImpl.class);
 * (NumberConstantsImpl_cs)
 */
"numberConstants.decimalSeparator()"= ","
"numberConstants.groupingSeparator()"= " "
"numberConstants.monetarySeparator()"= ","
"numberConstants.monetaryGroupingSeparator()"= " "

I assume following does not matter but just in case...
...this is how my machine's OS formats numbers:
Number: 123,456,789.00
Currency: 123 456 789,00 Kč
...this is how the server's OS formats numbers:
Number: 123 456 789,00
Currency: 123 456 789,00 Kč

Am I missing something?

Best regards
  J. Záruba

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
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.


Reply via email to