Hexa Decimal To Decimal Lecture-04
Hexa Decimal To Decimal Lecture-04
The hexadecimal numeral system, often shortened to "hex", is a numeral system made up of 16
symbols (base 16). The standard numeral system is called decimal (base 10) and uses ten symbols:
0,1,2,3,4,5,6,7,8,9. Hexadecimal uses the decimal numbers and six extra symbols A, B, C, D, E,F.
Here A is 10, B is 11, C is 12, D is 13, E is 14 and F is 15. Humans mostly use the decimal system.
Examples of hexadecimal numbers are 1AF, 4AB.2A, 3C9A and so on
Example #1
Convert (3B)16= (?)10
Example #2
Convert (E7A9)16=(?)10
=+
=(1195.16406)10
Conversio
n from
Decimal to
Hexadeci
mal
Binary to Hexadecimal and vice Versa
Conversion
from
Hexadecima
l to Octal &
Vice Versa
Conversio
n Octal to
Hexadeci
mal &
Vice Versa
Application of Hexadecimal
Number System
To define locations in memory. Hexadecimals can characterise every byte as
two hexadecimal digits only compared to eight digits when using binary.
To define colours on web pages. Each primary colour – red, green and blue is
characterised by two hexadecimal digits. The format being used is #RRGGBB.
RR stands for red, GG stands for green and BB stands for blue.
To represent Media Access Control (MAC) addresses. MAC addresses consist
of 12-digit hexadecimal numbers. The format being used is either
MM:MM:MM:SS:SS:SS or MMMM-MMSS-SSSS. The first 6 digits of the MAC
address represent the ID of the adapter manufacturer while the last 6 digits
represent the serial number of the adapter.
To display error messages. Hexadecimals are used to define the memory
location of the error. This is useful for programmers in finding and fixing
errors.