The Hexadecimal Number System


     The Hexadecimal number system has a base of 16 derived from it's name, hex meaning 6 and decimal meaning 10. Seeing where we cannot count to 15 using single digits, we use a combination of digits and letters, 0 through 9 plus letters A through F. The letters A through F , take on assigned decimal values of 10 through 15, respectively. Therefore, we have 0 through F or 0 through 15 respectively. Normally, the characters are written as follows: A hex or Ah, which indicate that they are characters in the hexadecimal code.
     The Hexadecimal number system is derived from four(4) bit binary numbers. Generally, the hexadecimal numbers are used to define an address in the memory of a computer. They will be grouped in four bit clusters such as: A2BFh. Each position having a multiple wieght of 16. Therefore, the first column is times 1, the second column is times 16, the third column is times 256 and the fourth column is times 4096.
      In the tables below, you will find the hexadecimal numbering system and the numbers the characters the represent. The first table shows the base structure and how to convert a Binary number to Hexadecimal. The second table shows examples of the address format with solutions.

Hexadecimal Conversion from Binary to hex or Base 16
Decimal #Binary NumberTotals
--------8's4's2's1's--------
000000+0+0+0=0
100010+0+0+1=1
200100+0+2+0=2
300110+0+2+1=3
401000+4+0+0=4
501010+4+0+1=5
601100+4+2+0=6
701110+4+2+1=7
810008+0+0+0=8
910018+0+0+1=9
1010108+0+2+0=10=A hex
1110118+0+2+1=11=B hex
1211008+4+0+0=12=C hex
1311018+4+0+1=13=D hex
1411108+4+2+0=14=E hex
1511118+4+2+1=15=F hex



Hexadecimal Address Examples (hex or Base 16)
Decimal #4096's256's16's1'sTotals
000000+0+0+0=0
15000F0+0+0+15=15
1600100+0+16+0=16
51202000+0+512+0=512
38990F3B0+3840+48+11=3899
25000FA0+0+240+10=250
409610004096+0+0+0=4096
65535FFFF61440+3840+240+15=65535
436911114096+256+16+1=4369
42701AB0+256+160+11=427