aspose file tools*
The moose likes Java in General and the fly likes formating numeric display.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "formating numeric display.." Watch "formating numeric display.." New topic
Author

formating numeric display..

Rajeev Ravindran
Ranch Hand

Joined: Aug 27, 2002
Posts: 455
hi all,
is it possible to format the decimal display of numeric values ?? i mean, i want 1 to be displayed as 001 and 2 as 002, like that 10 will be displayed as 010 .... i hope my question is clear !!
thanks,
raj


SCJP, SCWCD, SCBCD, Oracle Certified Professional (SQL n PL/SQL)
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
I love visiting this board because it makes me go out and learn stuff. Try this:

There are a number of formatters in the JDK. Look at classes derived from Format.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Rajeev Ravindran
Ranch Hand

Joined: Aug 27, 2002
Posts: 455
hi stan,
thanks for ur reply..that is wat i was looking for..Im too lazy to go thru the API..lol..
Thanks,
raj
Gaurav Mac Mathur
Ranch Hand

Joined: Feb 19, 2002
Posts: 47
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: formating numeric display..