03-22-2003, 08:43 AM
Quote:The way I calculate pi is like this: pi = 4 * ATN(1)
That's exactly what I do, just with higher precision calculations that allow more than 17 digits.
Oh yeah and I got this from some site:
atn(1) = 4 * atn(1/5) - atn(1/239)
Quote:when I tried to modify your prog to calculate pi to 10000 places someone42, it started printing zeroes after a while
Are you just changing the "FOR t% = 1 to 1000" line? The numbers I use are 4096-bit numbers, which can hold 1233 decimal digits. You have to change other things. I have tried to get it to give 10000 digits but for some utterly strange reason after about 2000 digits everything is *wrong*.