Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: bin2dec for big numbers

by TilRMan (Friar)
on Feb 26, 2005 at 18:40 UTC ( #434804=note: print w/ replies, xml ) Need Help??


in reply to bin2dec for big numbers

Nothing overkill about using a module.

use Math::BigInt; sub bin2dec { my ($bin) = @_; return Math::BigInt->new("0b$bin"); }


Comment on Re: bin2dec for big numbers
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2014-09-23 02:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls