How this calculation works
The repeating block forms a geometric series. Multiply by a power of ten to align its cycle and subtract the repeated tail. Add the whole part, then reduce the resulting integer ratio.
Denominator = 10^prefixLength × (10^repeatLength−1)A worked example
0.1(6) means 0.1666… . Its non-repeating prefix is 1 and repeating block is 6, so it is exactly 1/6.
Good to know
A parenthesized block denotes endless repetition. This is not an approximation of a measured decimal. Prefix and repeat blocks each have at most nine digits; a repeating block of zeros represents a terminating value.
Reference: OpenStax: Rational numbers and repeating decimals (opens in a new tab) ↗
The repeating block starts at a particular place
In 0.1(6), only the digit six repeats: 0.16666…. In 0.(16), the block sixteen repeats: 0.161616…. The nonrepeating prefix shifts where the cycle begins, so it must not be absorbed into the repeating field.
Leading zeros inside a block matter. The block 03 has length two and repeats as 030303…, not as 3333…. The denominator construction uses the number of places, not just the integer value of the written digits. For a terminating decimal, a repeating block of zero represents the unchanged finite value.
The continued fraction calculator can inspect the same recovered numerator and denominator by a separate Euclidean process.
Use subtraction to remove the infinite tail
For x=0.(27), multiplying by one hundred shifts by a full two-digit cycle: 100x=27.(27). Subtracting x leaves 99x=27, so x=27/99=3/11. A nonrepeating prefix requires an additional power-of-ten factor before that same repeating-tail cancellation.
The final fraction is exact for the explicitly entered infinite cycle, not for an arbitrary rounded decimal measurement. The fraction arithmetic calculator can then combine it with another exact fraction. A sign is applied to the entire value rather than being hidden inside one of the digit fields.
A few questions, answered
Does 0.(9) equal one?
Yes. The exact construction gives 9/9, which reduces to one.
Can the nonrepeating prefix start with zero?
Yes. Its full written length still determines the place value.
Can a rounded decimal measurement be treated as repeating?
Only if an actual infinite repeating pattern is intended. The tool does not infer such a pattern from measured digits.