Skip to content

Generate digits of π up to any given precision (number of decimal digits after the decimal point). Your implementation must be limited, in principle, only by the hardware (speed and memory) on which your code is running.

Notifications You must be signed in to change notification settings

Hasanabbas-Momin/Digits-of-Pi

Repository files navigation

Digits-of-Pi

Generate digits of π and root(2) up to any given precision (number of decimal digits after the decimal point). Your implementation must be limited, in principle, only by the hardware (speed and memory) on which your code is running.

Workes for every base but the answer is printed in same base so base 10 is hard coded.

INPUT :

  1. 1 or 2 for (1) root(2) and (2) for π
  2. Precision integer
  3. Base on which the above is calculated (although 10 is hardcoded).

Output : Value of Root(2) or π depanding on the input and in base 10 printed upto the precision # of digits.

About

Generate digits of π up to any given precision (number of decimal digits after the decimal point). Your implementation must be limited, in principle, only by the hardware (speed and memory) on which your code is running.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published