I am working on a project, which requires an array of float values to be converted to their corresponding fractions with a lowest common denominator found as well.
For instance, if given an array of {0.0, 0.21428572, 0.14285715, 0.64285713}, they would be converted to their corresponding fractions then an LCD would be found (in this case, 14).
Any suggestions? I have tried using the Fraction classes but none offer more than one LCD determinant.