A little context. A clearer answer.
When this calculator is useful
Convert in either direction: decimal to fraction or fraction to decimal. Repeating decimals, also called recurring decimals, use parentheses around the repeating block, such as 0.(3) or 0.1(6). Decimal input becomes a reduced fraction; fraction input is expanded until it terminates, a repeating cycle is found or the display limit is reached. This changes a number’s representation rather than performing arithmetic between two numbers. For a related calculation, try Fraction Calculator with Mixed Numbers.
What to enter
| Input | What it means | Example value |
|---|---|---|
| Input format | Choose decimal input, including optional repeating parentheses, or a p/q fraction. | Decimal, optionally repeating |
| Number to convert | Examples: 0.125, −2.1(6), or 7/12. Use a dot or a single decimal comma; do not use scientific notation. | 0.1(6) |
How the calculation works
- For m nonrepeating and r repeating digits, subtract the shifted expansions to obtain an integer fraction.
- Reduce numerator and denominator by their GCD and keep the denominator positive.
- Use long division; repeated remainders identify the repeating block, while remainder zero identifies termination.
0.A(B) = [A(10^r − 1) + B] / [10^m(10^r − 1)]A worked example
Worked example: 0.1(6) = 1/6. For 7/12 the decimal is 0.58(3) and the repeating period length is 1.
Example you can load
What to enterThis is a fixed example; changing the form above does not change these numbers.
Assumptions & limits
Input contains at most 80 digits. Parentheses mark one repeating block, as in 0.1(6). Fractions require an integer numerator and nonzero denominator. Decimal output is capped at 1000 digits; an unresolved period is not reported as zero.
Frequently asked questions
How do I enter a repeating decimal?
Use parentheses for the repeating block: 0.(3) is 1/3, and 0.1(6) is 1/6.
Does 0.(9) equal 1?
Yes. The infinite repeating decimal 0.(9) converts exactly to 1.
What does an ellipsis mean?
The displayed digits reached the 1000-digit limit before termination or a full repeating cycle was found.