1/2 is .5 that terminates. 1/8th is .125, also terminating. If you want NONterminating, your looking for things that end up with .33333, .66666, or .999999. like 1/3, or 2/3. Anyway. the easy way out...
Divide the numerator by the denominator. However, not all fractions terminate, for example 1/7 = 0.1428571428571... with the 6 digits 142857 recurring. With these, an approximation to the fraction...
First of all, this question is not clear. How can you have a terminating but repeating fraction? Unless you mean a fraction like 0.234234 that ends but has a pattern. In that case, see Scenario 1....