How it works
Enter the decimal, and if it repeats, the digit that repeats, with the part before it as the decimal. The page shows the fraction in simplest form, the whole part, the numerator and denominator and the decimal value.
Formula
Repeating: numerator = the digits with the repeat minus the digits before it, denominator = 10^prefix × (10^repeat − 1)
Sources
Example
Decimal: 0.38; Digit that repeats (0 for none): 0. Fraction: 3/8
Frequently asked questions
What is 0.375 as a fraction?
0.375 is 375/1000, and dividing both by 125 gives 3/8. Check: 3 / 8 = 0.375.
What about 0.8333...?
Enter 0.8 with 3 repeating. That is (83 − 8)/90 = 75/90 = 5/6. A rounded 0.333 without the repeat gives 333/1000, not 1/3.