Skip to main content
Calculator Fractions

Decimal to Continued Fraction Calculator

Express decimals as continued fractions.

Sequences & Series

Use the Decimal to Continued Fraction Calculator

Result
—

How Decimal to Continued Fraction Calculator Works?

The Decimal to Continued Fraction Calculator works in 4 steps: it reads a decimal, converts the decimal to an exact fraction, reduces the fraction by the greatest common factor (GCF), and prepares the fraction for term-by-term expansion. The result shows the fraction and the mixed number.

  1. Enter the decimal

    Type a terminating decimal such as 2.35. The calculator accepts positive and negative values with up to 8 decimal places.

  2. Convert to a fraction over a power of 10

    The calculator counts 2 decimal places and writes 2.35 as 235/100.

  3. Reduce to lowest terms

    GCF(235, 100) = 5, so the calculator returns 47/20 and the mixed number 2 7/20. The whole part 2 is the first term a0.

  4. Expand the fraction into terms

    Apply repeated division to 47/20: 47 = 2 × 20 + 7, 20 = 2 × 7 + 6, 7 = 1 × 6 + 1, 6 = 6 × 1. The decimal 2.35 equals [2; 2, 1, 6].

Decimal to Continued Fraction Calculator Formula

The decimal to continued fraction formula is d = p/q, then p/q = [a0; a1, a2, ...] with ak = floor(xk) and x(k+1) = 1/(xk - ak). A terminating decimal always gives a finite expansion.

Decimal to exact fraction

d = (d × 10^k) / 10^k

k is the number of digits after the decimal point. 0.6875 becomes 6875/10000, which reduces to 11/16.

Term rule

ak = floor(xk), x(k+1) = 1/(xk - ak)

Take the integer part, keep the leftover, and flip the leftover. Stop when the leftover equals exactly 0.

Zero first term

0 < d < 1 => a0 = 0

A decimal between 0 and 1 starts with a0 = 0, and the second term comes from 1/d. 0.375 gives 1/0.375 = 2.6667, so a1 = 2.

Worked example: 0.6875

  1. Convert to a fraction: 0.6875 = 6875/10000 = 11/16 after dividing by GCF 625.
  2. Find a0: 11/16 is below 1, so a0 = 0. Flip to 16/11.
  3. Divide 16 by 11: 16 = 1 × 11 + 5, so a1 = 1. Flip the remainder to 11/5.
  4. Divide 11 by 5: 11 = 2 × 5 + 1, so a2 = 2. Flip the remainder to 5/1.
  5. The last term is a3 = 5, so 0.6875 = [0; 1, 2, 5].

Decimal to Continued Fraction Calculator Conversion Table

The decimal to continued fraction conversion table lists 12 terminating decimals with the reduced fraction, the continued fraction, and the term count.

DecimalReduced FractionContinued FractionNumber of Terms
0.31255/16[0; 3, 5]3
0.3753/8[0; 2, 1, 2]4
0.459/20[0; 2, 4, 2]4
0.687511/16[0; 1, 2, 5]4
0.99/10[0; 1, 9]3
1.255/4[1; 4]2
1.68/5[1; 1, 1, 2]4
1.87515/8[1; 1, 7]3
2.12517/8[2; 8]2
2.7268/25[2; 1, 2, 1, 1, 3]6
3.14157/50[3; 7, 7]3
4.221/5[4; 5]2

What is Decimal to Continued Fraction Calculator?

A Decimal to Continued Fraction Calculator is a converter that turns a decimal number into an exact fraction and then into the bracket notation [a0; a1, a2, ...]. The tool removes the manual power-of-10 step and the reduction step.

The conversion has 2 stages. Stage 1 writes the decimal over 10, 100, 1000, or a higher power of 10 and reduces the fraction. Stage 2 runs the Euclidean algorithm on the numerator and the denominator, and each quotient becomes one term of the continued fraction.

Terminating decimals always produce a finite list of terms. The decimal 3.14 gives [3; 7, 7], and cutting the list after the 7 returns 22/7. Repeating decimals such as 0.333... produce short expansions once the repeating value is entered as an exact fraction like 1/3 = [0; 3].

What are the uses of Decimal to Continued Fraction Calculator?

The Decimal to Continued Fraction Calculator has 5 main uses, including measured-value analysis, approximation work, and algorithm practice.

  • Analyzing measured values

    Lab students convert a reading such as 2.72 into [2; 1, 2, 1, 1, 3] and spot the short fractions hidden in the measurement.

  • Building simple approximations

    Programmers truncate the expansion of a decimal constant to get a small fraction for integer-only code.

  • Practicing the Euclidean algorithm

    Students compare the quotients of each division step with the term list from the calculator.

  • Converting sensor ratios

    Electronics hobbyists turn decimal clock ratios such as 1.875 into 15/8 = [1; 1, 7] for divider settings.

  • Grading homework

    Teachers check a set of decimal-to-bracket conversions in 1 pass and confirm each reduced fraction.

Related Sequences & Series Tools

View all 270 tools →