String Formatter in GWT

See the official page on GWT date and number formatting.

They suggest the following:

myNum decimal = 33.23232;
myString = NumberFormat.getFormat("#.00").format(decimal);

It is best to use their supported, optimized methods, than to cook up your own non-optimal method. Their compiler will be optimizing them all to nearly the same thing anyway in the end.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)