3 ms·
Pi was already being approximated by Archimedes and Co. some time ago, I don't think its outside of the realm of possibility that a modern developer looks up fo
by montenegrohugo 8y ago
Pi was already being approximated by Archimedes and Co. some time ago, I don't think its outside of the realm of possibility that a modern developer looks up following inequality and just approximates pi to some degree of accuracy with
P/(2*r) > Pi > P/(2*R)
Once you have approximated it, returning a string with the first x digits is trivial