Skip to main content

Get the Value of Pi upto as many decimal places as needed

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PythonPi-1.0.2.zip (4.6 kB view details)

Uploaded Source

File details

Details for the file PythonPi-1.0.2.zip.

File metadata

  • Download URL: PythonPi-1.0.2.zip
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PythonPi-1.0.2.zip
Algorithm Hash digest
SHA256 c41de9f33975330f1644282a63708fcda51ba71515ec399172ad06fd826b7f49
MD5 01f6c46e57f641933e59c47e086b96bb
BLAKE2b-256 fcbfd81b6e804a423c0b8b9e7c1daeb32a7dae417ed94a1033ed325bb4f9b61f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page