07-13-2009 07:15 AM
07-13-2009 07:52 AM
Check net.rim.device.api.i18n.MessageFormat class
It is compatible with J2SE MessageFormat class:
http://java.sun.com/j2se/1.3/docs/api/java/text/Me
07-14-2009 03:16 AM
Thanks for your answer. I'm trying to format a Double and get 5 decimal precision, but it doesn't seem to work, i don't get anything... i'm doing this...
MessageFormat mf = new MessageFormat("{#.#####}");
Object[] objLa = {new Double(latitud)};
String latitudF = mf.format(objLa);
Any ideas?
07-14-2009 04:28 AM
10-09-2009 02:39 PM
The link you ref (horstmann...) is for non-commercial use only.
I need this functionality for a commercial app.
Any links, tips, pointers?
thanks!
lucidbee
11-13-2009 01:06 PM
It seems that the MessageFormat class does not yet support numbers...See this post:
11-26-2009 07:47 AM
It's really crappy RIM does not support these standard Java libraries, this makes development often very frustrating. When i look at the Android libraries for example it's just there.
03-03-2010 12:17 AM
hi ibarrera, what did you do to achieve Decimal formatting?