I'm writing a program that calculates Pi in C and i'm using a double data structure to store the final result. Double only gives me a certain amount of digits after the decimal point. My question is, what kind of data structure or what method could I use if I potentially wanted to have it calculate 100 digits or more after the decimal point?
Are u sure double is giving only certain amount of digits?? As far as I know double gives many digits after decimal, if not 100, and I have to truncate the digits using 0.2lf ...Getting 100 or more seems to be absurd to me....