Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Understanding endianness of a number

by haukex (Archbishop)
on Jul 23, 2017 at 20:14 UTC ( [id://1195834]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Understanding endianness of a number
in thread Understanding endianness of a number

Glad to help!

endianness (mostly) refers to byte storage, not (typically) bit storage

Yeah, I think there's some ambiguity there, e.g. whether LSB and MSB mean bytes or bits - Wikipedia makes a good point about context:

LSB can also stand for least significant byte. ... If the abbreviation's meaning least significant byte isn't obvious from context, it should be stated explicitly to avoid confusion with least significant bit.

Although the entry on Endianness does differentiate a bit more clearly:

The order of bits within a byte or word can also have endianness (as discussed later); however, a byte is typically handled as a numerical value or character symbol and so bit sequence order is obviated.

And then goes on talk about "Bit endianness" in its own section.

  • Comment on Re^3: Understanding endianness of a number

Replies are listed 'Best First'.
Re^4: Understanding endianness of a number
by stevieb (Canon) on Jul 23, 2017 at 20:18 UTC

    Yep, definitely gleaned that from the article. It just took a few iterations before I fully separated the two. For years, ever since I began coding around ~Y2K, I've heard and saw "endian" thrown around quite a bit, but never had the need to research what it actually was.

    All of it is quite fascinating, and I'm enjoying everything I've been working on dealing with how electronics store and use bits and bytes.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-26 08:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found