Thursday, 15 June 2017

HEXA DECIMAL SYSTEM

Decimal system?
A system of counting or measurement.
Uses a notation in which each number is expressed in base10.

Hexa decimal system?
Known as hexa (6), decimal (10) i.e, sixteen. Base 16 number system.
                         

Representation:
0-9 values represent zero to nine and A, B, C, D, E, F or alternatively a, b, c, d ,e, f to represent ten to fifteen.

Purpose:
Easier to express binary number representations in hex than in any other number system.

Hexadecimal for computer addressing:
Easy to convert binary words need to group 4 bits one after another.

Decimal, binary and hexadecimal converter table:

Decimal Binary Hexadecimal
0 0000 0
1 0001 1
2 0010 2
3 0011 3
4 0100 4
5 0101 5
6 0110 6
7 0111 7
8 1000 8
9 1001 9
10 1010 A
11 1011 B
12 1100 C
13 1101 D
14 1110 E
15 1111 F


Examples:
Converting Binary to hexadecimal:

                             
Converting Hexadecimal to binary:
Convert decimal to hexadecimal:
Convert octal to hexadecimal:  
                 
Advantages:
Very compact.
Store more information.
Quick and easy to convert between hexa decimal numbers and binary.

Disadvantages:
Human find it hard to deal it is not designed for humans.
Difficulty in reading bunch of 0's and 1's.

Applications:
Used by programmers for locations in memory.
Representation of binary coded values.
Computers work on binary but convenient to convert in to hexadecimal system.