Finding the quotient using decimal representations