Perl high precision calculation

If you want to make a high precision calculation with Perl you could use the bignum module.As little example:

And we could see the second result has a better accuracy than the default:

 

But you could improve this by setting the precision in Significant figures, like in this example we want 60.

As result we get:

 

3 thoughts on “Perl high precision calculation”

  1. I was more than happy to discover this web site. I wanted to thank
    you for ones time for this wonderful read!!
    I definitely enjoyed every bit of it and i also have you saved
    to fav to see new stuff on your blog.

    View Comment
  2. Every weekend i used to visit this web page, for the reason that i want
    enjoyment, as this this web site conations truly fastidious funny information too.

    View Comment

Leave a Reply

Your email address will not be published.

1 × four =