Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Syntactic Confectionery Delight
 
PerlMonks  

Re: Ascending vs descending bit order

by smitz (Chaplain)
on Jul 01, 2002 at 15:24 UTC ( #178583=note: print w/ replies, xml ) Need Help??


in reply to Ascending vs descending bit order

See:
Big Endian and Little Endian for the difference.
Why one is used over another is mostly (/me thinks ?) down to the system.

SMiTZ


Comment on Re: Ascending vs descending bit order
Re^2: Ascending vs descending bit order
by Aristotle (Chancellor) on Jul 01, 2002 at 15:41 UTC
    Careful, nothing to do with big vs little endian which are byte order variations, as opposed to the pack formats which differ in the bit order. Observe:
    $ perl -le'print ord pack "B*", "00000001"' 1 $ perl -le'print ord pack "b*", "00000001"' 128

    Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2013-05-25 02:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (516 votes), past polls