Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can somebody explain this

 
budsy remo
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 781
Java Netbeans IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://download.oracle.com/javase/6/docs/api/java/util/Formatter.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic