π with denominator up to 10
- Input
- 3,14159265358979, máx. 10
- Expected output
- 22/7
Error of about 0.0013.
pi as a fraction 22/7 355/113
In the tool Approximate mode, type a long decimal and pick the maximum denominator: the answer is the closest possible fraction inside the limit, with the error and the table of convergents. The shortcuts for π, √2, e and φ come pre-filled.
Error of about 0.0013.
Semiconvergent, error 0.00018.
Error of 2.7 in 10 million.
Convergent of the continued fraction of e.
Ratio of Fibonacci numbers.
314/100 reduced by 2.
Count the decimal places, write the digits without the point as the numerator and use 1 followed by that many zeros as the denominator. Then reduce by the gcd. Example: 0.375 has 3 places, becomes 375/1000 and, dividing by 125, 3/8. With an integer part, 2.5 = 25/10 = 5/2 = 2 1/2.
No. 22/7 = 3.142857142857..., a repeating decimal with block 142857, and π = 3.14159265... They agree on 3.14 and diverge at the third decimal place. The difference is about 0.0013.
Because the next term of the continued fraction of π is 292, a very large number. Large terms mean the previous convergent is already unusually close to the real value, and 355/113 sits right before that 292.
You can. The tool converts the repeating decimal to its exact fraction and approximates that fraction. If the fraction already has a denominator inside the limit, the result is exact and shows as an exact value in the table.
For denominators up to 10000, 10 places are enough, because the decimal error stays far below the fraction error. The shortcuts already carry 14 places, enough for any limit in the tool.
| Decimal | Fraction |
|---|---|
| 0,25 | 1/4 |
| 0,(3) | 1/3 |
| 1,2(5) | 113/90 |
| -0,8 | -4/5 |
All the math happens in your browser. No number is sent to any server.