Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
    Bookmark Topic Watch Topic
  • New Topic

Help! With the formatting of the percent!

 
Doug Con
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
I did this in the general section but I do need the help!

I just started doing java and one of my assignments require the format for the percent to be displayed but yet when I format it to display as a percent it reverts to just a nondecimal. What am I doing wrong. I have it print prior to format and all looks good(.0525) but when applying the format it shows 5% where is the 5.25%

Anyone?

Thanks


 
Henry Wong
author
Marshal
Pie
Posts: 21123
78
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator

First, don't crosspost. It wastes people's time and effort.

Second, if you didn't get an answer, or understood the answer, then elaborate the question, or continue the discussion on the answer. To ask the exact same question, in the exact same way doesn't make sense -- did you expect for something different to happen?


Regardless, Here is the link to the previous question...

http://www.coderanch.com/t/482908/Java-General/java/Help-With-formatting-percent

Henry
 
    Bookmark Topic Watch Topic
  • New Topic