DEV Community

Discussion on: TIL: Calculating n digits of pi using Chudnovsky Algorithm

Collapse
 
tigersharks profile image
TigerSharks • Edited

In the original post, Parambir shows the output for 30 and 300 digits of pi. It's in the code block right after the "Here's the CLI in action:"

./pi.py 30
3.141592653589741586517727315459

./pi.py 300
3.1415926535897415865177273154578650357802526912....

The results as shown in the author's work are wrong, and don't agree with your results.