Converting Decimals to Fractions: Number Theory & Algebraic Reduction
In real arithmetic, rational numbers $\mathbb{Q}$ represent numerical quantities expressible as the quotient of two coprime integers $\frac{p}{q}$ ($q \ne 0$). Decimal representations divide fundamentally into two categories: terminating decimals, whose prime factors of the denominator consist strictly of powers of 2 and 5 ($q = 2^a 5^b$), and periodic repeating decimals, which feature an infinitely recurring digit sequence (repetend).
1. Terminating Decimals: Base-10 Integer Decoupling
A terminating decimal with $k$ fractional digits is expressed as an integer fraction over $10^k$:
The resulting fraction is reduced to canonical lowest terms by dividing both numerator and denominator by their Greatest Common Divisor (GCD) using the Euclidean Algorithm:
2. Periodic Repeating Decimals: Algebraic Elimination Method
For repeating decimals having a non-repeating transient part $a$ of length $m$ followed by a repeating repetend $b$ of length $n$ ($x = 0.a\overline{b}$), algebra eliminates the infinite fractional tail:
Subtracting the two equations cancels the infinite decimal mantissa:
Architectural & Construction Standard Inch Fractions
In manufacturing, carpentry, and mechanical engineering, decimal dimensions must map to standard fractional inch increments ($\frac{1}{16}$, $\frac{1}{32}$, or $\frac{1}{64}$). To find the nearest $D$-th of an inch:
Step-by-Step Conversion Examples
Example A: Terminating Decimal ($x = 0.375$)
- Count decimal digits: $k = 3 \implies \text{Denominator} = 10^3 = 1{,}000$.
- Set up raw fraction: $\frac{375}{1000}$.
- Find $\gcd(375, 1000) = 125$.
- Divide: $\frac{375 \div 125}{1000 \div 125} = \mathbf{\frac{3}{8}}$.
Example B: Repeating Decimal ($x = 0.1666\dots = 0.1\overline{6}$)
- Transient length $m = 1$ ($a = 1$), repetend length $n = 1$ ($b = 6$).
- Set up equations: $$\begin{aligned} 10^1 x &= 1.\overline{6} \\ 10^2 x &= 16.\overline{6} \end{aligned}$$
- Subtract: $100x - 10x = 16 - 1 \implies 90x = 15$.
- Reduce fraction: $\frac{15}{90} = \frac{15 \div 15}{90 \div 15} = \mathbf{\frac{1}{6}}$.