BLOGGER TEMPLATES AND TWITTER BACKGROUNDS »

Wednesday 17 October 2012

the Hexadecimal System



Conversion of Hexadecimal to…
Decimal:
The hexadecimal can be converted to decimal by using the 16n system…
Eg:
C616
Hexadecimal            C                   6
Decimal              * 12×161            6×160      =    192   + 6    = 19810  
                      *   (C is equal to 12 in the Number System Conversion of  hexadecimal)
Eg 2 :
FFD4.F16
Hexadecimal            F               F                       D               4            .         F
Decimal               *15×163     15×162      **13×161      4×160            .     15×16-1
                            =61440 + 3840 + 208  + 4+0.9375
                            =65492.937510
(* 15 is equal to the  F in the Number System Conversion of hexadecimal…
  **13 is equal to the D in the Number System Conversion of hexadecimal…)

Binary:
The conversion of hexadecimal  to  binary  by 3 methods:
·         Converting to decimal and then to binary
·         According to the Number System Conversion between hexadecimal and binary
·         By using the 2n  system
Eg :
2C16
Method 1: Converting to decimal and then to binary
Hexadecimal                2                     C                 
Decimal                  2×161               12×160         =    32+ 12 =4410

 



Then convert the decimal into binary by using division…
2
44
2
22          0
2
11          0
2
  5          1
2
  2          1

  1          0
                                                               
4410 = 1011002
And also can written as …
2C16  =   1011002

Method 2 : According to the Number System Conversion between hexadecimal and binary
Hexadecimal         2                 C
Binary               0010              1100
·         2C16  =    10 11002
Method 3: By using the 2n system
---when  converting the binary into hexadecimal ,we need to group the binary into 4…and the 4 of grouped binary are indicated by the 2n system…
For example,   the most left of the  grouped binary indicate the 23,next is 22 , followed by 21, and lastly is 20
So,
2C16 =  0010 11002
(00102 = ( 0×23)+(0×22)+(1×21)+(0×20)=0+0+2+0=216;
1100=(1×23) + (1×22) + (0×21) + (0×20) = 8+4+0+0= 12=C16)

Eg 2:
C6.F16
We convert according the Number System Conversion between the hexadecimal and binary…

Hexadecimal                 C                     6               .                F
Binary                      1100                 0110                         1111
So,
C6.F16 =  1100 0110.11112

Octal:
There are few ways to convert the hexadecimal to octal:
·         Convert the hexadecimal into decimal and then to octal
·         Convert the hexadecimal into binary and then to octal
Eg :
4A16
Method 1: Convert the hexadecimal into decimal and then to octal
Hexadecimal          4                     A
Decimal               4×161            10×160   =    64 + 10 =7410

Convert to octal by dividing the decimal with 8…
          8
           74
          8
             9              2

             1              1
                                                                                            
4A16  = 1128
Method 2 : Convert the hexadecimal into binary and then to octal
Hexadecimal                    4                              A
Binary                       *   0100                      **1010
                           * ((0×23) + (1×22) + (0×21) + (0×20) =416)
                         **((1×23) + (0×22) + (1×21) + (0×20) = 10 =A16)
4A16 = 100 10102
Convert to octal by grouping the binary into 3…
100 10102  =  001 |  001 | 0102
Then , according to the Number System Conversion between Octal and binary…
Octal
Binary
0
000
1
001
2
010
3
011
4
100
5
101
6
110
7
111

10010102 = 1128
Or …
By using the 2n system…
100 10102 =     001    |     001    | 0102
                    =((0×22)+(0×21)+(1×20)) |((0×22)+(0×21)+(1×20)) | ((0×22)+(1×21)+(0×20))
                    =1             |        1      |    28
Therefore ,
4A16  =   1128

Eg 2 :
6A.B16
Converting to binary …
Hexadecimal            6                 A         .             B
Binary                   0110            1010     .          1011
6A.B16 = 1101010.10112
Converting into octal…
1101010.10112 =   001 |101 |010. |101 | 100  
(According to the Number System Conversion between octal and binary)
                             =     1 |    5   | 2  .   |   5   |48

Therefore,
6A.B16  =    152.548

by Chong Cai Ning B031210080 shinbachi123@hotmail.com

0 comments: