Okay I totally coded in a method for calculating pi but it seems that when I use a double or long double I can not calculate pi past a certain decimal point. So I was wondering if some one knew a way I could calculate pi untill i run out of memory. Thanks in advance.
yeah I found the GMP library and it seems to be great but I dont know how to include it in my program. I am using eclipse if that helps. sorry for being such a noob XD but thank you for replying.