# public Khan /khan-exercises

### Subversion checkout URL

You can clone with HTTPS or Subversion.

Fetching contributors…

Cannot retrieve contributors at this time

file 60 lines (50 sloc) 2.723 kb
 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59         Dividing decimals 2

randRange(1, 10)                    randFromArray([0.3, 0.4, 0.6, 0.7, 0.75, 0.8, 0.9])                    DIVIDEND / DIVISOR                    getGCD(DIVISOR * 10, 10)

\large{DIVIDEND \div DIVISOR = {?}}

QUOTIENT

\large{DIVIDEND \div DIVISOR = DIVIDEND \div \dfrac{DIVISOR * 10}{10}}

\large{\phantom{DIVIDEND \div DIVISOR} = DIVIDEND \div \dfrac{10 * DIVISOR / GCD}{10 / GCD}}

Dividing by a fraction is the same as multiplying by the reciprocal of the fraction.

\large{DIVIDEND \div \dfrac{10 * DIVISOR / GCD}{10 / GCD} =                 DIVIDEND \times \dfrac{10 / GCD}{10 * DIVISOR / GCD}}

\large{\phantom{DIVIDEND \div \dfrac{10 * DIVISOR / GCD}{10 / GCD}} =                 \dfrac{DIVIDEND \times 10 / GCD}{10 * DIVISOR / GCD}}

\large{\phantom{DIVIDEND \div \dfrac{10 * DIVISOR / GCD}{10 / GCD}} =                 \dfrac{DIVIDEND * 10 / GCD}{10 * DIVISOR / GCD}}

\large{\phantom{DIVIDEND \div \dfrac{10 * DIVISOR / GCD}{10 / GCD}} = QUOTIENT}

Something went wrong with that request. Please try again.