5
$\begingroup$

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?

  • 1
    See http://stackoverflow.com/questions/4637967/algorithm-challenge-generate-continued-fractions-for-a-float2011-02-21

1 Answers 1

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.