Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Not able to substract 2 big numbers with the right precision

by sgt (Deacon)
on Aug 23, 2007 at 09:43 UTC ( [id://634598]=note: print w/replies, xml ) Need Help??


in reply to Not able to substract 2 big numbers with the right precision

besides bignum, you can also try some multiprecision package. This implies in general having a C library and a Perl module to interface with it. A example is Math::GMP or Math::Pari. Can be better to store everything first as strings and deal with separtely with exponents.

if you want to try Math::Pari, on some systems there is a bug which prevents the build to fetch correctly the Pari lib. If you fetch it yourself and untar it in the module install dir everything should be fine

cheers --stephan
  • Comment on Re: Not able to substract 2 big numbers with the right precision

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://634598]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-25 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found