Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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.


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


Console Usage

Just run the file (if not installed using pip) or enter the following command (if installed using pip):


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


Created By Pradipta Bora (geekpradd) using the Chudnovsky Algorithm. MIT Licensed.

Release History

Release History

This version
History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date (4.6 kB) Copy SHA256 Checksum SHA256 Source Feb 27, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting