-
Sep 14th, 2023, 03:11 PM
#1
Thread Starter
Frenzied Member
calculating Pi
Hi.
I have read up on a number of ways to have an app calculate pi, but I keep coming back to the same hard limit. Pretty much every app I know of in Windows stops adding decimal places after about 10.
If I wanted to calculate Pi to 1000 decimal places, the algorithm is just going to round to the nearest billionth (or whatever). What am I missing?
How are computers getting pi into the trillions of digits?
Wen Gang, Programmer
VB6, QB, HTML, ASP, VBScript, Visual C++, Java
-
Sep 14th, 2023, 03:37 PM
#2
Re: calculating Pi
Maybe try a search for bignum?
-
Sep 14th, 2023, 03:46 PM
#3
-
Sep 14th, 2023, 03:58 PM
#4
Re: calculating Pi
Because this is more of a math question than it is a VB6 question, I have moved the thread to the Maths Forum.
-
Nov 27th, 2023, 02:45 PM
#5
Fanatic Member
Re: calculating Pi
 Originally Posted by wengang
Hi.
I have read up on a number of ways to have an app calculate pi, but I keep coming back to the same hard limit. Pretty much every app I know of in Windows stops adding decimal places after about 10.
If I wanted to calculate Pi to 1000 decimal places, the algorithm is just going to round to the nearest billionth (or whatever). What am I missing?
How are computers getting pi into the trillions of digits?
You need to use software that has extended precision capability, like the Python mpmath module, or FLINT:
https://mpmath.org/
https://flintlib.org/
Years ago there was an extended precision Excel add-in called XNUMBERS that could make computations up to 200 digits or more, but development stopped at some point:
https://www.thetropicalevents.com/Xnumbers60.htm
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|