Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry® World™ Development

Reply
Contributor
Posts: 35
Registered: ‎03-04-2010
My Device: 9381
My Carrier: Vodafone

Decimal Formatting

I want to know How to format decimal values.

 

For example

Value=123.3698

output=123.3

mca
Contributor
Posts: 19
Registered: ‎02-17-2010
My Device: 8520
My Carrier: Vivo

Re: Decimal Formatting

You will have to write your own formater.

 

On BlackBerry  MessageFormat does not support numbers and DecimalFormat  is not included the BlackBerry API.

 

There is an example here: Format.java