This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes numeric format - help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "numeric format - help!" Watch "numeric format - help!" New topic

numeric format - help!

sarah Marsh
Ranch Hand

Joined: Mar 06, 2001
Posts: 282
Is there any Java class or toolkit to do
the numeric format. For example, no matter
how the input looks like, I need the output
to be XX.X
Thanks in advance!
Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
Look at the DecimalFormat class.

"I'm not back." - Bill Harding, Twister
jQuery in Action, 2nd edition
subject: numeric format - help!
Similar Threads
Invalid number specified in a numeric field
How to read MAGIC for db-2x2.db
Formatting a numeric value (123,456)
something interesting
convert timestamp to double