Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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

Replies are listed 'Best First'.
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
Domain Nodelet?
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 pondering the Monastery: (3)
As of 2021-11-29 06:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?