how is pi calculated?
There are at least 1000 different formulas for calculating Pi. You can download this program for free and you can calculate Pi to as many digits as you want.
http://www.numberworld.org/y-cruncher/#Download