Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > decimal/hex convert to binary(80 bits)

Reply
Thread Tools

decimal/hex convert to binary(80 bits)

 
 
Yuji
Guest
Posts: n/a
 
      09-03-2005
hi,

may i know how to do some number conversion from hex or decimal to
resultant binary which is 80 bits?

thanks

 
Reply With Quote
 
 
 
 
Matija Papec
Guest
Posts: n/a
 
      09-03-2005
X-Ftn-To: Yuji

"Yuji" <> wrote:
>may i know how to do some number conversion from hex or decimal to
>resultant binary which is 80 bits?


use Math::BigInt;

my $num = Math::BigInt->new("0xffffffffffffffffffff");
print $num->as_bin, "\n";



--
Matija
 
Reply With Quote
 
 
 
 
Yuji
Guest
Posts: n/a
 
      09-03-2005
thanks. so u visit CPAN to find all these library?

 
Reply With Quote
 
Sisyphus
Guest
Posts: n/a
 
      09-04-2005

"Yuji" <> wrote in message
news: ups.com...
> thanks. so u visit CPAN to find all these library?
>


Yes - a good place to start a search is at http://search.cpan.org

You should, however, already have Math::BigInt. It's part of the perl core.

Cheers,
Rob


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Qestion about convert Object to byte[] and convert it back davidxiongcn@gmail.com Java 5 11-04-2006 04:11 PM
IsNumeric: Convert.ToInt32 vs. Convert.ToInt64 sck10 ASP .Net 4 09-03-2006 09:40 PM
To convert to J2SE 6 or not to convert, that is the question... Jaap Java 4 07-10-2006 09:03 AM
convert list of strings to set of regexes; convert list of strings to trie Klaus Neuner Python 7 07-26-2004 07:25 AM
Do I need to Convert with Convert.ToInt32(session("myNumber")) ? Andreas Klemt ASP .Net 1 07-23-2003 02:59 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57