OK, I am new to Java. I am trying to figur out how to convert a percentage such as 15% to a decimal like .15 and then converting it back. I have done some serching but I think I am looking and asking for the wrong thing.
Andy, Can you please give more details? If you are reading the value from STD i/p or calculating it from some other parameters.
If you are asking the user to i/p then it is pretty simple. You can store it in a double or float variable and divide by 100. And to convert it back you can multiply by 100 and put a % when you display. Hope my reply helps you.