In Java, I am trying to find a way to convert a float number into a fraction string. For example:
float num = 1.33333; String numStr = Convert(num); // Shoul
Look into chain fractions. This allows you to determine denominator and fraction within a given accuracy.
For Pi you can get 22/7 or 355/113 depending on when you choose to stop.