This is a pi generator that uses an algorithm to calculate the digits of Pi and infinitely creates and edits them. It would have to run infinite times to create the infinite digits of Pi, and it will show digits that aren't correct as no algorithm can immediately create the wanted number using only a few iterations. There is a finicky glitch in the cloud variables that I hope will go away, it sometimes is buggy and sometimes isn't. Use space to turn the music on and off!
Code: Mostly me but my dad helped me put it together. Music: bensound.com I am using the algorithm π = (4 ÷ 1) - (4 ÷ 3) + (4 ÷ 5) - (4 ÷ 7) and so on. I had to show the numbers on lists as the variables on Scratch show only a limited number of decimals. Each iteration will mean the computer has done π = + (4 ÷ 1) - (4 ÷ 3) with the divisor increasing by two every time it goes through the algorithm. The 9th digit will take 140,000,000 iterations to compute, or 140 additions to the list. There are lots of different ways to generate Pi and I will probably be adding a few more over time. This is more of an experiment and it is not a very efficient strategy at all because more complex formulas for Pi don't work very well on Scratch. My dad helped me with this project and told me about how people could generate Pi.