If you want to get a direct comparison between floating point and integer division, then use > > int divTest2(double divisor, int total) > > { > > int sum = 0; > > for(int i = 0; i < total; i++) > > { > > int quotient = i / divisor; // !!!!!!!! > > sum += quotient; > > } > > }