function to work out pi to 799 decimal places