PythonPi
Get the Value of Pi upto n decimal digits using this Python Script. Uses the chudnovsky algorithm implemented using the Pyton Decimal Data Type.
Installation
If you want to use this as a module, then you can use pip or just download the script to your computer from here.
Using pip
pip install PythonPi
Usage
Console Usage
Just run the file (if not installed using pip) or enter the following command (if installed using pip):
pythonpi
You can then use the Interactive Shell to do your calculations
API Usage
If you for some reason need the value of pi in your program then you can use the module in the following way:
import PythonPi
print(PythonPi.getValueOfPi(12)) #Upto 12 decimal places
About
Created By Pradipta Bora (geekpradd) using the Chudnovsky Algorithm. MIT Licensed.
Metadata
Release files for PythonPi 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PythonPi-1.0.2.zip | 4.6 kB | Without provenance | Details for PythonPi-1.0.2.zip |
Release files / PythonPi-1.0.2.zip
| Download URL | PythonPi-1.0.2.zip |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c41de9f33975330f1644282a63708fcda51ba71515ec399172ad06fd826b7f49
|
|
BLAKE2b-256 checksum How to use checksums |
fcbfd81b6e804a423c0b8b9e7c1daeb32a7dae417ed94a1033ed325bb4f9b61f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for PythonPi 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.