An integer divide determines the integer number of time the denominator divides the numerator. If either one or both of the operands are doubles, the result will be a double. Because the operator behaves differently when given arguments of different types, we say it is overloaded . To do that requires that we choose coins of the largest possible value. Another item we need to discuss about operators is precedence .
Precedence expresses the fact that some operators are applied before others.
We say the multiplication operator takes precedence over addition or subtraction. A table showing the precedence of operators is given in the book on page 120.