NumberFormat and Internationalization Messages

19 views
Skip to first unread message

Thad

unread,
Nov 22, 2012, 10:50:28 AM11/22/12
to google-we...@googlegroups.com
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?
Reply all
Reply to author
Forward
0 new messages