13 Mar 2013

What is a Hexadecimal Number and how it differ from Dacimal Number ?

Hexadecimal number is a number system in which we are communicate with microprocessor . Why we use Hexadecimal for microprocessor this will discus in bellow. So starting with Hexadecimal number we have to now counting from 0 to 15 will mean 16 different digits and so has a base of 16. What the digits look like really doesn’t matter. Nevertheless, we may try to make it as simple as possible. The first 10 are easy, we can just use 0123456789 as in denary. For the last six we have decided to use the first six letters of the alphabet: ABCDEF or abcdef.

In bellow you just Watch what is the difference between  Hex and Decimal number

Hex                         Decimal
0                                       0
1                                        1
2                                       2
3                                       3
4                                       4
5                                       5
6                                       6
7                                       7
8                                       8
9                                       9
A                                      10
B                                      11
C                                      12
D                                      13
E                                      14
F                                      15
10                                    16
11                                    17
12                                    18
13                                    19
14                                    20
15                                    21
16                                    22
17                                    23
18                                    24
19                                    25
1A                                   26
1B                                   27
1C                                   28
1D                                   29
1E                                   30
1F                                   31
20                                   32


and so on............

We must be careful to include the base whenever necessary to avoid confusion. The base is usually written as H, though h or 16 would still be acceptable.

I give you some Idea :

16H = 24

16h = 24

Now converting Hex to Decimal you know it is a very simple technique let supposed we are taking hex number 1C we have to find out the equivalent decimal then we have to do only

1x16  = 16
  + C  =  12
-------------
              28

No comments:

Post a Comment