Remember to mark your calendars because March 14th is Pi Day! Click the flag! To obtain a more accurate value of pi, a large number of terms are usually required. Typically, 1 million terms are used to calculate pi, which results in 3.141592653589787. However, an accurate value of pi can have at least 50 decimal digits, which are displayed here: 3.14159265358979323846264338327950288419716939937510. To make the calculation more precise, you can modify the number of terms in the code. But, if your computer is not the fastest, it is recommended to use between 1000 to 5000 terms to avoid system crashes. On the other hand, if your computer is fast, [god gamer specs], you can set it up to 50000000 terms, which may lag your PC.
Thanks to the website below for helping me calculate π. https://www.geeksforgeeks.org/calculate-pi-using-nilkanthas-series/ When you copy this project or ANY code from this project, be sure to credit the website above and me.