This is probably a pretty dumb question but here goes. How do I make a users decimal value display as a percentage later in my program. Say if user was asked for interest rate and they put .05. Later I want to say interest rate = 5%.
Printable View
This is probably a pretty dumb question but here goes. How do I make a users decimal value display as a percentage later in my program. Say if user was asked for interest rate and they put .05. Later I want to say interest rate = 5%.
Multiply by 100, convert to a String and add a % sign at the end.