Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

numeric format - help!

 
sarah Marsh
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
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
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the DecimalFormat class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic