Hexadecimal, Explained.

all kinds of tutorials and guides. how, where, why, step-by-step stuff and more. also support for those tutorials and guides. ONLY post step-by-step guides/tutorials here OR reply with question if you have any.
Post Reply
ronokae
Allie
Allie
Posts: 83
Joined: Mon Jan 03, 2011 10:01 pm

Hexadecimal, Explained.

Post by ronokae »

I'll point you to everything you'll ever need go here: Google.com
Seriously, it works wonders.

As far as understanding hexadecimal goes. I'll assist.

In any number system the number is multiplied by it's base and digit positioning.
Let me show you.

Decimal (our usual number system) which is base 10:
Example: 24
(2x10^1 + 2x10^0) The the digit place is what changed the ^X where x = the placing of the digit starting from 0 to whatever, and going from left to right. Finally, the "10" here is our base.

Just another example: 123

(1x10^2 + 2x10^1 + 3x10^0)
1x100(10^2) = 100 + 2x10(10^1) = 20 + 3*1(10^0) = 3
<- The 10 to the power of 1 (10^1) is 10, the 10 to power of 0 (10^0) is 1. [reason below] ->
so
100+20+3 = 123.
NOTE: the ^x is "To the X power", since i don't feel like copying/pasting the superscript symbols from word [such as 10²]
NOTE: Note, anything to the power of 1 is 1, and anything to the power of 1 is that number. Hence demonstration above.

Now let's try Hexadecimal which is base 16:
NOTE:In hexadecimal 10->15 becomes A->F

lets count to 26 first in hex:1,2,3,4,5,6,7,8,9,10(wrong),11(wrong),12(wrong),13(wrong),14(wrong),15 (wrong)

Correct way: 1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
Moving on we'll transfer decimal to hex, with Example:

since you know that 10-15=A-F lets get to numbering
10 in hex is NOT equal to 10 in decimal A is.
nor is 16 = 16, So after you reach F(15) in hex, how do you get to 16?
10.
Here:
(1x16^1 + 0x16^0)
1x16(16^1) = 16 + 0x1(16^0)= 0 therefore
16+0 = 16, which is 10 in hex.

Another example from decimal to hex.
24
2x16^1 + 2x16^0
2x16(16^1) = 16 + 2x1(16^0)=2
16+2 = 18
therefore (decimal) 24 = 18 (hex)

Last example with letters:
from hex to decimal
1A
1x16^1 + Ax16^0
1x16(16^1)=16 + Ax1(16x0)=10 therefore
(hex) 1A = (decimal) 26

If you don't understand by now just google. practice by making your own tables it's a great help
Last edited by ronokae on Fri Jul 29, 2011 6:07 am, edited 1 time in total.
Arik
Newbie..
Newbie..
Posts: 11
Joined: Thu Jul 28, 2011 4:56 am

Re: Hexadecimal, Explained.

Post by Arik »

Thanks alot mate! I'll be sure to google it *bow*
ronokae
Allie
Allie
Posts: 83
Joined: Mon Jan 03, 2011 10:01 pm

Re: Hexadecimal, Explained.

Post by ronokae »

Arik wrote:Thanks alot mate! I'll be sure to google it *bow*

You're welcome. Always google first you'll find lots of sources that way.
Post Reply