Formatting numerical display

Put your problem here if it does not fit any of the other categories.

Formatting numerical display

Postby slebed » Sun Jul 26, 2009 12:32 am

I'm can't seem to figure out how to create a string from numeric input in the format of "##.##"

I'd like to have a leading zero for single digits and two decimal places.

Does what I'm asking for make sense? I've looked into Formatter, but I'm constantly erroring out with out, and I'm not sure that it won't gc() ever time its called.

Thanks in advance!
slebed
Freshman
Freshman
 
Posts: 9
Joined: Sat Jul 11, 2009 10:22 pm

Top

try this

Postby ccd » Sun Jul 26, 2009 9:19 am

ccd
Once Poster
Once Poster
 
Posts: 1
Joined: Sun Jul 26, 2009 9:18 am

Postby slebed » Sun Jul 26, 2009 6:42 pm

Thanks! That really helped me out. That link was much more concise than the Sun docs.
slebed
Freshman
Freshman
 
Posts: 9
Joined: Sat Jul 11, 2009 10:22 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 12 guests