aspose file tools*
The moose likes Beginning Java and the fly likes Can somebody explain this 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 » Beginning Java
Bookmark "Can somebody explain this" Watch "Can somebody explain this" New topic
Author

Can somebody explain this

budsy remo
Ranch Hand

Joined: Sep 20, 2008
Posts: 103
What does this means :
System.out.printf("%10.2f",somevariable);

What does this 10.2 stands for ? I know f means to represent float value but what does 10.2 does ?
James Sabre
Ranch Hand

Joined: Sep 07, 2004
Posts: 781

http://download.oracle.com/javase/6/docs/api/java/util/Formatter.html


Retired horse trader.
 Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can somebody explain this