I am trying to calculate the quotient of two numbers. However, when they do not divide evenly, I want it to product a decimal instead of just the integer. I have only been using cpp for a week now so simple solutions would be appreciated! I know it has to do with double or float I am just a bit lost.
One of integerOne or integerTwo must be interpreted as a float or double value for the division to produce a non-integer value, and then you need a non-integer variable to store it in.