Go into turbo mode (hold shift while you click the green flag)
The way I calculated pi is from an infinite series. That series being (4/1) - (4/3) + (4/5) - (4/7) + (4/9) etc. Number 1 is set to four and number 3 is set to number 1 divided by number 2. Number 3 quickly gets too small to display it as a variable and it just shows zero even though the value isn't zero. P.S. The Pi generator is under the stage. Feel free to use the code for whatever project you need as long as you give credit me. Thanks :) 11/28/16: Updated for more digits.