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
Setting Up Long Division for a Fraction
A Terminating Example: $\frac{3}{8}$
Why Remainders Matter
A Repeating Example: $\frac{1}{3}$
Terminate or Repeat: The Only Two Outcomes
When the Repeating Block Starts Late:
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