Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: 5x6-bit values into/out of a 32-bit word

by Thelonius (Priest)
on Mar 18, 2007 at 01:26 UTC ( #605328=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!perl -w
    use strict;
    ...
    
    my @out = intToB5($word);
    print "out = ", join(", ", @out), "\n";
    
  2. or download this
    word = 17314053 = 0x01083105 = 0b000001000010000011000100000101
    out = 1, 2, 3, 4, 5
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-12-28 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls