I simply need to know how I can detect repeating decimal expansion in floats.

Example:

0.123456789123456789

The repeating portion of the number would be 123456789.

I want to automatize this in C#, is there any smart solution?

Edit
Report