Choose accuracy at beginning. Use turbo mode (shift + green flag) for best performance.
This project does not use any trigonometric functions! It is all done with the Pythagorean Theorem. Due to restrictions with the scratch datatypes, this can only generate pi up to 7 significant places (3.141593). I want to try and improve on this by using some kind of arrays to manage the data instead, so the float limits are not imposed.