Friday, June 29, 2012

How to use NumberFormat to set maximum number of integer digit

Hi everyone, 

There is one topic about how-to use NumberFormat to set minimum number of integer digit.
But now I come across one problem, I only wanna keep the decimal format looking like "000.00", three integer and two number after decimal point. that means format a 1234.567 will get 234.58.
how to use NumberFormat to set maximum number of integer digit. Since java.text.NumberFormat is very convenient to do this job.
By contrast, com.google.gwt.client.i18n.NumberFormat is seemed as it could not perform this function.
should I need to write a function to implement it or maybe use a special pattern?
Do someone have any suggestions?
Thanks!

Best Regards!

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