File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Help! With the formatting of the percent! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

Help! With the formatting of the percent!

Doug Con

Joined: Feb 14, 2010
Posts: 7
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%



Henry Wong

Joined: Sep 28, 2004
Posts: 20514

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...


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
I agree. Here's the link:
subject: Help! With the formatting of the percent!
It's not a secret anymore!