Help me to know whether there are any processes in C++ by applying which I can find out whether the decimal representation of p/q
is a rational number or an irrational number.
For example 10/4 = 2.5
is a rational number where 10/3 = 3.3333333
is an irrational number