Pi can be calculated by taking the arctangent of one
radian and multiplying it by four.
This php page
will pass the required precision to a bc script, and calculate
pi to as many places as you like.More than 10,000 places
may require a bit of a wait though....