double input into a decimal

I'm trying to write a program that will take the amount of money spent on groceries, and the percentage of sales tax, and give a total. My question is, if I ask the user to input the percentage of sales tax, how would I turn that input into a decimal form? To clarify, if a user inputs 7 as the sales tax percentage, how would I turn that into %.07 in order to use it in my calculations?
read the sales tax percentage as a float or a double.
divide the input value by 100 and then use it in your calculations.
Topic archived. No new replies allowed.