Numerator
Denominator

After simplifying, a fraction terminates only if the denominator has no prime factors other than 2 and 5.

Repeating block