1
votes

for example lets say I want to convert the integer 47 as a decimal number 0.47 so how can I do this?

1
Can you think of a mathematical rule that relates the quantity 47 to the quantity .47? - Karl Knechtel

1 Answers

0
votes

Can't you just divide the number with 100?

and change the variable from an int to double.