If you look at some rational number such as: 7/125003 in decimal form, which starts thus:
0.000055998656032255225874579010103757509819764325656184251...
From just looking at this string, it is impossible to tell whether it is rational or irrational..... In fact, this decimal fraction goes on for 62,501 digits before it starts repeating again!!!!!. The test of a "perfect square" is not going to help you determine fractions such as this one, whether it is rational or irrational. However, sometimes there is a simple test to determine the rationality or irrationality of a decimal. It is called "continued fraction" test that you can do, even on hand-held calculator, to determine what kind of a number it is. It goes like this: You take the reciprocal of the above decimal fraction and you immediately see a pattern of convergence, thus:17,857.571428571428571428571428571.......... Then you subtract the integer part and keep the fractional part thus:0.57142857142857142857142857142857.....Then you take the reciprocal of this last decimal fraction and you get this:1.75. Subtract 1 and keep .75. Take its reciprocal and you get:1.3333333333......Subtract 1 again and take the reciprocal of .3333333333333333.... and you get 1. And that is it. It tells you that your decimal fraction is actually a rational number. You can list the continued fraction thus: {0., 17,857, 1, 1, 3}.