http://www.perlmonks.org?node_id=1052345


in reply to Re: to calculate the value of π
in thread to calculate the value of π

Math::BigInt may be helpful for this.