Decimal to fraction

Decimal to fraction: use decimal value. Review the formula, worked example and calculation steps.

Inputs

Use the units shown
RESULT
—

Enter your values and select Calculate.

Formula & explanation
Continued fraction approximation with denominator ≤ 10⁹

Variables & units

Decimal value
Numeric value · minimum -1000000, maximum 1000000

Worked example

0.125 = 1/8.

Assumptions

Approximates the entered finite decimal; repeating decimals must be entered to sufficient precision.

Formula version 1.0.0. JavaScript floating-point arithmetic applies. Results display up to 6 decimal places; stored values retain available precision. Use the units shown.

Calculated on your device. Your latest 100 calculations stay in this browser.