Vai al contenuto

Decimal to Fraction Conversion

The Story Behind the Math

In ancient Babylon (1800 BCE), mathematicians used base-60 fractions. The Egyptians used unit fractions (1/2, 1/3, 1/4). But decimals as we know them only emerged in the 16th century.

Simon Stevin (1548-1620), a Flemish mathematician and engineer, revolutionized calculation with his 1585 book "De Thiende" (The Tenth). He showed that fractions could be written using the same place-value system as whole numbers—just extending it to the right of the ones place.

The breakthrough: Instead of writing complex fractions, write the numerator and mark where the denominator's power of 10 begins. \(0.375\) means \(375/1000\). Simple!

But this raised deep questions: Why does \(0.333\ldots\) equal exactly \(1/3\)? Can every fraction be written as a decimal? Can every decimal be written as a fraction?

Why It Matters

Converting between forms is essential:

  • Measurements: Architectural plans, cooking recipes, scientific data
  • Finance: Interest rates (APR), stock prices, currency exchange
  • Computing: Floating-point representation, precision issues
  • Mathematics: Proving numbers irrational (like \(\pi\) and \(e\))

Understanding conversions means understanding the deep connection between different representations of the same number.

Prerequisites

  • Dividing-Fractions — Division as the basis for decimals
  • Long-Division — The algorithm for converting fractions
  • Place value system extended to fractional parts
  • Understanding of fractions and equivalent fractions

The Core Insight

What Decimals Really Are

A decimal is a fraction written in a special form:

\[ 0.375 = \frac{3}{10} + \frac{7}{100} + \frac{5}{1000} = \frac{375}{1000} \]

The decimal point separates the whole number part from the fractional part. Each position to the right represents a smaller power of 10:

\[ 0.abc = \frac{a}{10} + \frac{b}{100} + \frac{c}{1000} \]

Terminating vs. Repeating

Some decimals stop (terminating): \(0.5 = \frac{1}{2}\)

Some decimals repeat forever (repeating): \(0.333\ldots = \frac{1}{3}\)

The difference depends on the fraction's denominator.

Converting Terminating Decimals to Fractions

The Basic Method

Step 1: Write the decimal as the numerator without the decimal point.

Step 2: The denominator is 1 followed by zeros—one zero for each decimal place.

Step 3: Simplify the fraction.

Example 1: \(0.375\)

\[ 0.375 = \frac{375}{1000} \]

Simplify:

\[ \frac{375}{1000} = \frac{375 \div 125}{1000 \div 125} = \frac{3}{8} \]

Example 2: \(2.45\)

For mixed numbers, handle whole and fractional parts separately:

\[ 2.45 = 2 + 0.45 = 2 + \frac{45}{100} = 2 + \frac{9}{20} = \frac{49}{20} \]

Or as an improper fraction directly:

\[ 2.45 = \frac{245}{100} = \frac{49}{20} \]

Why the Denominator is a Power of 10

Three decimal places means thousandths because:

\[ 0.001 = \frac{1}{1000} = \frac{1}{10^3} \]

Each place value is \(1/10\) of the previous one.

Converting Fractions to Decimals

Method 1: Equivalent Fractions with Denominator 10, 100, 1000, ...

Works when the denominator divides a power of 10.

Example: \(\frac{3}{4}\)

Since \(4 \times 25 = 100\):

\[ \frac{3}{4} = \frac{3 \times 25}{4 \times 25} = \frac{75}{100} = 0.75 \]

Example: \(\frac{7}{20}\)

Since \(20 \times 5 = 100\):

\[ \frac{7}{20} = \frac{7 \times 5}{20 \times 5} = \frac{35}{100} = 0.35 \]

Method 2: Long Division (Always Works)

Divide numerator by denominator.

Example: \(\frac{3}{8}\)

\[ \begin{array}{r} 0.375 \\ 8 \enclose{longdiv}{3.000} \\ \underline{24\phantom{00}} \\ 60\phantom{0} \\ \underline{56\phantom{0}} \\ 40 \\ \underline{40} \\ 0 \end{array} \]

Result: \(\frac{3}{8} = 0.375\)

When Fractions Terminate

A fraction \(\frac{a}{b}\) (in lowest terms) has a terminating decimal if and only if the denominator \(b\) has no prime factors other than 2 and 5.

Why? Because \(10 = 2 \times 5\). We need to multiply by factors of 2 and 5 to get a power of 10.

Fraction Denominator Prime Factors Decimal
\(\frac{3}{8}\) \(2^3\) 0.375 (terminates)
\(\frac{7}{20}\) \(2^2 \times 5\) 0.35 (terminates)
\(\frac{1}{3}\) 3 0.333... (repeats)
\(\frac{1}{6}\) \(2 \times 3\) 0.1666... (repeats)

Converting Repeating Decimals to Fractions

The Algebraic Method

Example: Convert \(0.333\ldots\) to a fraction

Step 1: Let \(x = 0.333\ldots\)

Step 2: Multiply by 10 (one shift per repeating digit):

\[ 10x = 3.333\ldots \]

Step 3: Subtract to eliminate the repeating part:

\[ 10x - x = 3.333\ldots - 0.333\ldots \]
\[ 9x = 3 \]

Step 4: Solve for \(x\):

\[ x = \frac{3}{9} = \frac{1}{3} \]

Example: \(0.142857142857\ldots\) (6 repeating digits)

Step 1: Let \(x = 0.142857142857\ldots\)

Step 2: Multiply by \(10^6 = 1,000,000\):

\[ 1,000,000x = 142,857.142857\ldots \]

Step 3: Subtract:

\[ 1,000,000x - x = 142,857.142857\ldots - 0.142857\ldots \]
\[ 999,999x = 142,857 \]

Step 4: Solve:

\[ x = \frac{142,857}{999,999} = \frac{1}{7} \]

Beautiful fact: \(\frac{1}{7} = 0.\overline{142857}\) and these six digits cycle through all fractions with denominator 7: - \(\frac{2}{7} = 0.\overline{285714}\) - \(\frac{3}{7} = 0.\overline{428571}\) - etc.

The Pattern for Single Digit Repeating

For \(0.\overline{a}\) (one digit repeating):

\[ 0.\overline{a} = \frac{a}{9} \]

Examples: - \(0.\overline{1} = \frac{1}{9}\) - \(0.\overline{2} = \frac{2}{9}\) - \(0.\overline{5} = \frac{5}{9}\) - \(0.\overline{9} = \frac{9}{9} = 1\)

Two Digit Repeating

For \(0.\overline{ab}\) (two digits repeating):

\[ 0.\overline{ab} = \frac{ab}{99} \]

Example: \(0.\overline{23} = \frac{23}{99}\)

Mixed Repeating Decimals

Example: \(0.12\overline{34}\) (non-repeating then repeating)

Step 1: Let \(x = 0.12343434\ldots\)

Step 2: Multiply by 100 to shift past non-repeating part:

\[ 100x = 12.343434\ldots \]

Step 3: Multiply by 100 again to shift one full cycle:

\[ 10,000x = 1234.343434\ldots \]

Step 4: Subtract:

\[ 10,000x - 100x = 1234.343434\ldots - 12.343434\ldots \]
\[ 9900x = 1222 \]

Step 5: Solve:

\[ x = \frac{1222}{9900} = \frac{611}{4950} \]

Special Case: \(0.999\ldots = 1\)

This is one of the most surprising facts in mathematics.

Proof 1: Algebraic

Let \(x = 0.999\ldots\)

Then \(10x = 9.999\ldots\)

Subtract: \(10x - x = 9.999\ldots - 0.999\ldots\)

\[ 9x = 9 \Rightarrow x = 1 \]

Proof 2: Fraction

\[ 0.\overline{9} = \frac{9}{9} = 1 \]

Proof 3: Distance

If \(0.999\ldots \neq 1\), there would be some number between them. But there's no decimal you can write that's between \(0.999\ldots\) and 1. They're the same point on the number line.

Intuition

\(0.999\ldots\) and 1 are two different names for the same number, just like \(\frac{1}{2}\) and \(\frac{2}{4}\).

Why Some Numbers Can't Be Either

Not all numbers can be written as fractions. Irrational numbers like \(\sqrt{2}\), \(\pi\), and \(e\) have decimal expansions that: - Never terminate - Never repeat in a cycle

This is actually how we prove they're irrational—show no fraction could produce such a decimal.

Practical Applications

Calculator Limitations

Calculators truncate decimals:

\[ \frac{1}{3} \approx 0.3333333333 \text{ (10 digits)} \]

But \(0.3333333333 \times 3 = 0.9999999999 \neq 1\)!

Understanding exact fractions vs. approximations prevents rounding errors.

Computing

Computers use binary floating point. Some simple decimals aren't exact in binary:

\[ 0.1_{10} = 0.0001100110011\ldots_2 \text{ (repeats in binary!)} \]

This is why \(0.1 + 0.2 \neq 0.3\) in many programming languages!

Measurements

"Measure twice, cut once"—but measurements are always approximations:

  • "2.5 inches" might mean \(2.5 \pm 0.05\) or exactly \(\frac{5}{2}\)
  • Understanding which representation carries what precision is crucial

Common Misconceptions

  1. "Longer decimals are always larger": No! \(0.999\ldots = 1\), and \(0.5 > 0.4999\)

  2. "Terminating decimals are more precise": Not necessarily. \(\frac{1}{3}\) is exact; \(0.333\) is an approximation.

  3. "You can't divide by zero, so you can't write fractions as decimals": We just use long division and accept the repeating pattern.

  4. "0.999... approaches 1 but never equals it": In the limit, it equals 1 exactly. The "..." means infinitely many 9s, not "getting close."

References

  • Mazur, J. (2014). Enlightening Symbols: A Short History of Mathematical Notation and Its Hidden Powers. Princeton University Press.
  • Crossley, J. N. (1987). The Emergence of Number. World Scientific.
  • Niven, I. (1961). Numbers: Rational and Irrational. Mathematical Association of America.