On May 18, 12:20 am, laurent <bagno_laur...@hotmail.com> wrote:
> i want that maximum one figure after the dot.For example, i've
> 123.89 , with formatting : 123.8

        NumberFormat nf = NumberFormat.getFormat("#.0");
        String s1 = nf.format(123.45); // 123.5
        String s2 = nf.format(123); // 123.0
        String s3 = nf.format(0.45); // .5

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to