Pi

closed account (17DSLyTq)
I have managed to calculate pi to numerous places in visual basic, but im fairly new to c++ and cant seem to get pi right beyond about 100 places. If anyone knows where I could find a working example of a c++ pi calculator I would be interest in seeing how it is done.
Really? That's surprising, because no floating point type is capable of holding that many bits (100/log(2)~=333).

http://gmplib.org/pi-with-gmp.html
Topic archived. No new replies allowed.