How decimal to fraction converter works
A decimal can always be written as a fraction: the place value of the last digit tells you the denominator. 0.75 means seventy-five hundredths, or 75/100, which simplifies to 3/4. For terminating decimals this is exact; for repeating or rounded decimals the exact fraction may have a huge denominator, so we find the closest simple fraction instead.
This converter uses a continued-fraction algorithm, the same method a mathematician uses to find the best rational approximation. It walks the continued fraction of the number and stops when the next convergent would need a denominator larger than the cap (10,000 by default), returning the closest fraction within that bound. The result is always in lowest terms.
Enter a decimal (positive or negative, terminating or rounded). The tool returns the fraction, the mixed-number form when the value is greater than 1, and the numerator and denominator separately. It also reports the integer-as-fraction case (5 becomes 5/1). Use it for carpentry, recipes, machining, and homework where fractional measurements are preferred.