Depending on your browser and your computer's processing speed, choosing a large number of digits may cause a warning that the script on this page is executing too long. Allow the browser to continue executing the script and eventually it will finish.
Number of digits:
= 48*arctan(1/18) + 32*arctan(1/57) − 20*arctan(1/239)
If you liked this page, you might also like my high-precision nth root calculator page.
The same π calculation algorithm, only in the form of a Windows batch file, was featured as a Stupid Coding Trick by The Daily WTF.