For a rational number to generate a repeating decimal, the correct condition is:
The denominator must not evenly divide any power of 10.
This means that if the simplified form of a rational number's denominator has any prime factors other than 2 or 5, it will produce a repeating decimal. If the denominator only consists of the prime factors 2 and/or 5, the decimal will terminate.