Binary Hexadecimal .... etc ...

beenthere

Joined Apr 20, 2004
15,819
Endian notation can be a bit mind-bending - http://en.wikipedia.org/wiki/Endianness

You are probably safe to assume the same order of significance as in decimal notation. The grouping into bytes should proceed from the rightmost bit, so your binary value 010111101011010100101 parses to 0 1011 1101 0110 1010 0101, or 0x0BD6A5
 

THE_RB

Joined Feb 11, 2008
5,438
Download this handy little windows program;
http://www.romanblack.com/hexcon.htm



You can enter data in dec/hex/binary and it shows the same data in all 3 formats. It also lets you edit data in any of the 3 formats, then press enter and the edit is updated for all 3 formats. (like you can add "1" to the end of a binary number or shift bits << or >> in a binary number and see the result).
 

Ratch

Joined Mar 20, 2007
1,070
MegaMan,

my question is , do we count four digits from left to right ?

in other words , how can we deal with this ?

010111101011010100101

i have added the Bold 1 , how can we solve now ?
You always group binary digits from the right to the left if you are converting binary to a power of 2 base like octal, hexadecimal, etc.

--------------------------------------------------------------------------

blueroomelectronics,

Depends on if it's big or little endian.
Only if you are converting to a nonpower of 2 base, such as decimal.

Ratch
 

Ratch

Joined Mar 20, 2007
1,070
blueroomelectronic,

Endian determines which way you read the binary number, either left to right or right to left.
Endian determines the way a number written in a power of 2 base is interpreted to a nonpower of 2 base.


Ratch
 
Top