Introduction

Welcome back to Rational Numbers and Terminating Decimals! In our first lesson, we established what rational numbers are — values that can be written as a fraction of two integers with a nonzero denominator. We saw that integers, signed fractions, and finite decimals all belong to this family.

Now, in this second lesson, we pick up a hands-on tool for moving between those two forms: long division. We will use it to convert any fraction into its decimal expansion, one digit at a time. More importantly, we will discover something elegant along the way: the division process itself reveals why every fraction's decimal must either come to a clean stop or settle into a repeating pattern. By the end of this lesson, you will be able to perform the conversion and explain the reason behind the result.

From Fractions to Decimals — Why We Need a Method

In daily life we often need a decimal where we only have a fraction. A recipe calls for 38\frac{3}{8} of a cup, but your digital kitchen scale reads in decimals. A test score is reported as 1720\frac{17}{20}, yet you want a percentage. In situations like these, converting a fraction to a decimal is a practical skill.

Setting Up Long Division for a Fraction

To convert ab\frac{a}{b} into a decimal, we divide the numerator aa by the denominator bb. Here is the basic setup:

  1. Place aa inside the division bracket and outside.
A Terminating Example: $\frac{3}{8}$

Let's walk through 38\frac{3}{8} in full detail. We are dividing 33 by 88.

Step 1 — 88 does not fit into , so we write in the quotient and work with . Since , the first quotient digit after the decimal point is , and the remainder is .

Why Remainders Matter

Let's pause and look at the sequence of remainders from the example above: 6, 4, 06,\ 4,\ 0. Three observations are worth noting:

  • Every remainder is a whole number between 00 and b1b - 1. When dividing by 88, that means the only possible remainders are or — just eight values.
A Repeating Example: $\frac{1}{3}$

Now let's try a fraction whose decimal does not terminate. We divide 11 by 33.

Step 1 — 33 does not fit into 11, so we write 0.0. and work with 1010. Since , the quotient digit is , and the remainder is .

Terminate or Repeat: The Only Two Outcomes

Here is the powerful observation that connects everything. When we divide by bb, the remainder at every step must be a whole number from 00 to b1b - 1. That gives us at most bb possible remainder values, so one of two things must happen:

  • A remainder of 00 appears. The division stops, and we get a (like ).
When the Repeating Block Starts Late:

Sometimes the repeating pattern does not begin at the very first decimal digit. Let's see this with 56\frac{5}{6}.

StepWorking ValueQuotient DigitRemainder
150÷650 \div 688
Conclusion and Next Steps

In this lesson we converted fractions to decimals using long division and discovered why every fraction's decimal must either terminate or fall into a repeating cycle. The explanation comes down to remainders: there are only finitely many possible values, so they must eventually repeat or hit zero. This simple fact guarantees that every rational number produces a predictable decimal pattern.

In the next lesson, we will focus on the terminating side of the story and learn how to convert terminating decimals back into their simplest fraction form. But first, it is time to practice: you will work through long divisions step by step, fill in missing digits and remainders, track remainder sequences, and pinpoint exactly where repeating blocks begin. Let's put those division skills to work!

Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal