lets say we have
x = 1/7

x = 0.142857 142857 142857 142857
the recurring cycle in this decimal is 142857

is there anyway to find this, or at least the length of it?
for example, if x = 1/7 >> y = 142857

I don't want a code, I want a method...
Thanks