Electronics Tutorials Home Page


Valid XHTML Web Page

Do you like our Site?
Help us to Share It

Bookmark to: Google Bookmark to: Yahoo Bookmark to: Digg Bookmark to: Del.icio.us Bookmark to: Technorati
Bookmark to: Facebook Bookmark to: Reddit Bookmark to: StumbleUpon Bookmark to: Slashdot Bookmark to: Newsvine
Bookmark to: Propeller Bookmark to: Blinklist Bookmark to: Simpy


Electronics Tutorial about Hexadecimal Numbers
 

Hexadecimal Numbers

Navigation
Page: 3 of 5

Hexadecimal Numbers

The one main disadvantage of Binary Numbers is that the binary equivalent of a large decimal number can be quite long, which makes it difficult to both read or write without producing errors especially when working with 16 or 32-bit numbers. One common way of overcoming this problem is to arrange the binary numbers into groups of four as a Hexadecimal Number, starting with the least significant digit at the right hand side. This Hexadecimal or simply "Hex" numbering system uses the Base-16 system with a combination of numbers and letters to represent its Binary or Decimal equivalent.

For example: the following group of numbers 1101   0101   1100   11112  are much easier to read and understand than  11010101110011112 when all grouped together.

By dividing a binary number up into groups of 4 bits, each group or set of 4 digits can now have a possible value of between "0000" (0) and "1111" (8+4+2+1 = 15) giving a total of 16 different number combinations from 0 to 15, this system is commonly called Hexadecimal, and now q = "16".

The numbers 0 to 9 are still used as in the original decimal system, but the numbers from 10 to 15 are now represented by letters of the alphabet from A to F inclusive and an example of this Hexadecimal system is given below.

Hexadecimal Numbering System

Decimal 4-bit Binary Hexadecimal
000000
100011
200102
300113
401004
501015
601106
701117
810008
910019
101010A
111011B
121100C
131101D
141110E
151111F
160001 000010 (1+0)
170001 000111 (1+1)
Continuing upwards in groups of four

Using the original binary number from above 1101 0101 1100 11112 this can now be converted into an equivalent hexadecimal number of D5CF16 which is much easier to read and understand than a long row of 1īs and 0īs. Similarly, converting Hex based numbers back into binary is simply the reverse operation.

Then the main characteristics of a Hexadecimal Numbering System is that there are 16 distinct counting digits from 0 to F with each digit having a weight or value of 16 starting from the least significant bit (LSB). In order to distinguish Hexadecimal numbers from Denary numbers, a prefix of either a "#", (Hash) or a "$" (Dollar sign) is used before the actual Hexadecimal value.

Example No1.

Convert the following Binary number 111010102 into its Hexadecimal number equivalent.

111010102 
 
Group the bits into fours starting from the right hand side
 
 =
 
1110
 
1010
 
 
 =
 
E
 
A
 
 
Then, the hexadecimal equivalent of the binary number

111010102 is   #EA16

Example No2.

Convert the following Hexadecimal number #3FA716 into its Binary equivalent, and also into its Decimal or Denary equivalent.

#3FA716 
  = 0011 1111 1010 01112
  = (8192 + 4096 + 2048 + 1024 + 512 + 256 + 128 + 32 + 4 + 2 + 1)
 
= 16,29510

Then, the Decimal number of 16,295 can be represented as:-

#3FA716   in Hexadecimal

or

0011 1111 1010 01112   in Binary.


Goto Page:  1 2 3 4 5

 External Links about Binary to Hexadecimal Conversion  
Practical Guide to Binary, Decimal and Hexadecimal Numbers - Good Tutorial Explains Well.
 Niels Jonker
Converting Hexadecimal to Binary - Tutorial about Converting Hex to Binary.
 Permadi.com
Converting Binary and Hexadecimal Values - Tutorial about Binary and Hex Conversion.
 Computer Hope
Binary to Hexadecimal - Good Tutorial about Binary to Hexadecimal Conversion.
 ECAWEB - Educational Computing Association of WA
Binary and Hexadecimal Notation - Tutorial about Binary and Hexadecimal Numbers.
 Connexions

Link to us : 
Add this Hexadecimal Tutorial to your Favourites

Advertisement


Page Designed and Written by Wayne Storr.   Last updated  ,
Copyright © 1998 − 2010, Electronics-Tutorials.ws, All Right Reserved.