For those who are curious how it is implemented, you can read the source here: src/const_pi.c · master · mpfr / mpfr · GitLab
For those who are curious how it is implemented, you can read the source here: src/const_pi.c · master · mpfr / mpfr · GitLab