I need to express the value of $\pi$ as numerator/denominator. What is the best pair considering that the numerator should be less than or equal to $2^{62}$? Or how to get this pair?
Asked
Active
Viewed 601 times
5
-
6See http://en.wikipedia.org/wiki/Continued_fraction#Continued_fraction_expansions_of_.CF.80 . – Qiaochu Yuan Feb 21 '11 at 12:04
-
1See also http://demonstrations.wolfram.com/ApproximatingPiWithContinuedFractions/ – lhf Feb 21 '11 at 12:18
-
1See http://stackoverflow.com/questions/4637967/algorithm-challenge-generate-continued-fractions-for-a-float – Shai Covo Feb 21 '11 at 13:37
1 Answers
3
I think $\frac{129988029236677443584}{41376474791582048256}$ is the closest fraction to $\pi$ with a numerator less than $2^{62}$.
Edit: I just realized that this question is four years old.
KSFT
- 133