Use the NumberFormatter and set precision to 2. But I don't think that has
anything built in that will give you the double 00 if the number is 0 at the
beginning. Instead, you would end up with 0.00. But you could pretty easily
extend the NumberFormatter class, override the format function, then call
super.format() and check if the result is "0.00", of so just prepend an
extra 0.

Doug

On Tue, Sep 9, 2008 at 12:54 PM, Jo Morano <[EMAIL PROTECTED]> wrote:

>   Hi!
>
> I have a Number that I need to print out along with other strings. I don't
> get the leading or trailing 0's and that continues to affect the label whose
> text they represent. Is there a C style formatting mechanism which would
> make
>
> string = "" + number
>
> give me "12.34" when number is 12.34 and "00.00" for number = 0?
>
> Today I get "12.34" and "0" respectively.
>
>
>
>
>  
>

Reply via email to