- Your decimal
- 0.375
- Largest denominator to allow
- 1000
3/8
Open with these values3/8
Result: 3/80.375 is 3/8. A continued-fraction expansion looks for the simplest fraction that matches, so 0.3333 comes back as 1/3 instead of 3333/10000. Lower the denominator cap to force a rounder answer: cap it at 16 and 0.313 becomes 5/16.
3/8
Open with these values1/3
Open with these values5/16
Open with these valuesx = a₀ + 1 ÷ (a₁ + 1 ÷ (a₂ + …))
A terminating decimal is easy to convert by hand: put the digits over the matching power of ten and reduce. 0.375 is 375/1000, and cancelling 125 leaves 3/8. A repeating decimal is the interesting case. 0.3333 over ten thousand is technically correct and useless — what you want is 1/3. Getting there uses a continued-fraction expansion: split off the whole part of the number, invert what is left, and repeat. Each step yields a convergent, a fraction that approximates the decimal better than any simpler fraction can. The expansion stops when the next denominator would exceed the cap you set, and the convergents are coprime by construction, so the answer is already in lowest terms. Two things decide what you get back. The digits you type are the specification: 0.33 and 0.3333 are different numbers and honestly deserve different fractions. And the denominator cap is a tool rather than a safety rail. Lowering it forces a simpler, rounder answer — exactly what measurements want. Cap at 16 and 0.313 becomes 5/16, the nearest sixteenth of an inch; cap at 200 and 3.141593 becomes the classic 355/113. Irrational numbers have no exact fraction. π, √2 and e can only ever be approximated, however high you raise the cap.
Leave it high for an exact conversion, lower it to force a rounder fraction. Sixteen gives sixteenths of an inch, eight gives eighths, twelve gives twelfths.
The expansion looks for the simplest fraction that matches, not the closest one over a fixed denominator. That is why 0.3333 gives 1/3 rather than 3333/10000.
0.33 finds 33/100 and 0.3333 finds 1/3. Both are correct for what was entered, so type enough digits of a repeating decimal for it to be recognised.
π, √2 and e have no fractional form at all. What you get is a very good approximation, never the number itself.
0.3333 should convert to 3333/10000.
That is arithmetically true but not what was meant. The converter looks for the simplest matching fraction and returns 1/3.
The answer still needs reducing afterwards.
Consecutive convergents of a continued fraction are always coprime, so the fraction comes out in lowest terms already.
A higher denominator cap always gives a better answer.
It gives a more exact one. For a measurement you usually want the opposite: a low cap and a fraction you can read off a ruler.
| Decimal | Cap | Fraction |
|---|---|---|
| 0.5 | 1000 | 1/2 |
| 0.625 | 1000 | 5/8 |
| 0.375 | 1000 | 3/8 |
| 0.0625 | 1000 | 1/16 |
| 0.33 | 1000 | 33/100 |
| 0.3333 | 100 | 1/3 |
| 0.667 | 100 | 2/3 |
| 0.1429 | 100 | 1/7 |
| 0.313 | 16 | 5/16 |
| 1.583333 | 1000 | 19/12 |
| 3.141593 | 200 | 355/113 |
| −0.6 | 1000 | −3/5 |
For a terminating decimal, write the digits over the matching power of ten and reduce: 0.375 is 375/1000, which cancels to 3/8. For a repeating decimal the converter uses a continued-fraction expansion instead.
Because the expansion searches for the simplest fraction that matches the digits, and 1/3 is far simpler. If you want the literal fraction, type fewer digits or raise the denominator cap.
It limits how complicated the answer may get. Cap at 16 and 0.313 becomes 5/16, the nearest sixteenth of an inch; cap at 200 and 3.141593 becomes 355/113.
Yes. Consecutive convergents of a continued fraction satisfy hk' − h'k = ±1, which means numerator and denominator share no factor. No further reduction is possible.
No. π is irrational, so no fraction equals it exactly. 355/113 matches it to six decimal places and is the best approximation with a denominator under 16000, but it is still an approximation.
Information, not professional advice.
Diese Seite gibt es auch auf Deutsch.
Zu Deutsch wechseln