how would i go about calculating pi to 1 million decimal places???
I know it's stupid but I desperate!
please somebody help me I've got to get this off my shoulders
Dave Smith
This is a discussion on pi within the C Programming forums, part of the General Programming Boards category; how would i go about calculating pi to 1 million decimal places??? I know it's stupid but I desperate! please ...
how would i go about calculating pi to 1 million decimal places???
I know it's stupid but I desperate!
please somebody help me I've got to get this off my shoulders
Dave Smith
Why do you need that kind of precision? Are you doing calculations for a particle accelerator or something? To calculate any number to one million decimal places in C you have to use a custom data structure. Calculate the number in small bits and then add those bits to a node in a linked list, to print the number traverse the list.
Or use a language without number size constraints, like LISP.
-Prelude
My best code is written with the delete key.