Set iterations to any number ≥2, and it should give you an estimate for pi. You can get to the meat of this one if you look inside.
The algorithm is built around Ramanujan's pi formula. What else is there to say? Do note, however that it won't be very accurate because scratch variables are not built for storing things accurately. I wasn't bothered to find a workaround, clearly...