The % operator is only defined for integers. That is something like
int a=10;
int b=7;
int c=a%b;
is O.K. but that would fail if a and b were doubles or floats.
So pints, quarts, PNT and QRT should be declared as ints, or else you should cast them as such.
Also check out http://bytes.com/topic/c/answers/495...uble-variables
-Tom
Leave a comment: