Thursday, November 22, 2012

NumberFormat and Internationalization Messages

I'm am unable to get com.google.gwt.i18n.client.Messages for format a float in production.

My DefaultMessage looks like "{0,float,#.0}\"". In DevMode, my number has one digit after the decimal, e.g., 8.8" or 11.6"

In production--now Javascript vs Java--the number has many digits after the decimal, e.g., 8.800000190734863" or 11.600000381469726"
This is true in IE and Chrome (I've not tested Firefox and Safari).

Am I wrong thinking that this formatting should work like java.text.NumberFormat?

--
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/-/cyjaDB12K6UJ.
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.

No comments:

Post a Comment