Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: decimal to binary convertion

by I0 (Priest)
on May 19, 2002 at 00:58 UTC ( #167585=note: print w/ replies, xml ) Need Help??


in reply to decimal to binary convertion

sub dectobin { use Math::BigInt; my $x = Math::BigInt->new(shift); join '', unpack 'B32B32', pack'NN',$x>>32,$x&0xffffffff; } print dectobin "12297829382473034410";


Comment on Re: decimal to binary convertion
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2015-07-04 23:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls