Uses the Leibniz formula for pi, which means that it will never be exact. So if you type in 100 decimal accuracy its not gonna give you exactly 100 digits of pi, not only because the Leibniz formula cant be that exact, but also because i cant find out to get rid of the scratch limitations for decimal approximations. If you know how to get rid of the decimal approximation thing, please comment a solution!
Google search, helped me a lot for finding these formulas.