Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: 3-byte representation

by BrowserUk (Patriarch)
on Oct 12, 2011 at 18:32 UTC ( [id://931059]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub pack24{ substr( pack('l>', $_[0]), 1) };;
    sub unpack24{ unpack('l>', "$_[0]\0") };;
    ...
    2:  512
    8388606:  2147483136
    8388607:  2147483392
    
  2. or download this
    sub pack24{ substr( pack('l<', $_[0]), 1) };;
    sub unpack24{ unpack('l<', "$_[0]\0") };;
    ...
    2:  0
    8388606:  32767
    8388607:  32767
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-23 21:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found