GitHunt
ER

EricTerrell/Pi-Calculator

Compute ๐›‘ to a ludicrously high precision! (C#, Avalonia UI)

Pi-Calculator

Compute ๐›‘ to a ludicrously high precision!

Requires

.NET 9.0 + Avalonia UI. Developed with JetBrains Rider IDE.

Example

Screenshot 2025-03-22 102042

Credits

Uses the ExtendedNumerics BigDecimal class.

Uses these algorithms to calculate ๐›‘:

How to Build

Go to the "Pi Calculator\Pi Calculator\deploy" folder. Run "deploy-all-framework-dependent.ps1" or
"deploy-all-self-contained.ps1".

The framework dependent build scripts will create relatively small executables,
which will require that .NET 9 has already been installed.

The self-contained scripts will create relatively large
executables which will not require a previous .NET 9 installation.

Developers

Pi Calculator was developed in the C# programming language, using Avalonia, which allows developers
to create .NET UI apps for Windows, Linux, and OSX.

The app was developed with the JetBrains Rider IDE.

After building the app, use the scripts in the "deploy" folder to generate the executable and dependencies.

References

https://math.tools/numbers/pi/1000000

Performance

This program uses a single CPU core.

It calculated 1,000,000 digits in ~20 minutes on an AMD Ryzen 7 PRO 7840U with 64 GB RAM.

The Plouffe / Bellard code could be easily parallelized, but since the Andrew
Jennings code is so much faster, there's really no point.

Languages

C#91.5%PowerShell8.5%

Contributors

Created March 19, 2025
Updated November 25, 2025
EricTerrell/Pi-Calculator | GitHunt