Skip to main content

Has Up to 1 Million digits of pi!

Project description

This Project has only one function: pi

You can have 1000000(1 Million) digits of pi in a string.

You can't calculate with it, because if you convert it to foat python will reduce it to 3.141592653589793 but you can many things; make e. a pi search(To find a number sequence in pi), create music with pi, make a 3D code drawing or even make a game!

Install with pip:

pip install math-pi

An Example:

>>>import math_pi
>>>print(math_pi.pi(b = 10))
3.1415926535
>>>print(math_pi.pi(a = 2, b = 10)) # This doesn't return the "3." when the starting number is more than 1
415926535
>>>print(math_pi.pi(b = 1000000))
3.141592653589793238462643383279502884197169399375105820... #Squuezed Output Viewer will pop up when you print a big number

This Project requires: pi_1mp

HomePage

Special Thanks to Peter Truebsen who inspired me for making this module

Note: ThisProject counts numbers after the point. Example math_pi.pi(a = 1, b = 3) is "3.141"

Regards, Tanmay

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

math_pi-0.0.7.tar.gz (2.1 kB view hashes)

Uploaded Source

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