calculate pi does not work

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.
You could store it as a string instead of as a double/long double.

Or you could use a bignum lib (google search for "bignum C++" and you'll find one)
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.
Topic archived. No new replies allowed.