Page 1 of 1

PI to one million decimal places

Posted: Sun Mar 31, 2013 12:20 am
by StevenM
For anyone that wants to explore the mysteries of PI - this project reads the nth decimal place of PI up to one million decimals from a text file.

To Use just call getPI(int n)

Example:

Code: Select all

getPI(0); //3
getPI(1); //1
getPI(2); //4
getPI(3); //1
The sample project here adds the first 144 decimal places of PI and outputs the results to the log window.