If the denominator of the simplified fraction is a multiple of any prime number that isn't 5 or 2, then the decimal doesn't terminates. (If the denominator of the fraction is a multiple of 2 and another prime number, like 3, then it doesn't terminate.)