Hexadecimal
Number System
Conversions
Step-by-Step Process:
[Link] the decimal number by 16 (since hexadecimal is base
16).
[Link] down the remainder.
[Link] the quotient from step 1 by 16 again and repeat the
process.
[Link] when the quotient is 0.
[Link] hexadecimal number is the sequence of remainders
read from bottom to top.
Example 1
Convert 30 denary number into hexadecimal number
30= 1E
Example 2
Convert 255 (decimal) to hexadecimal
255= FF
Example-3
Class activity
Convert 100 (denary) to hexadecimal
100
Show the working
Ans is
Class activity
Convert 100 (denary) to hexadecimal
100
Show the working
Ans is 64
Applications of hexadecimal
system
A few applications of hexadecimal system are explained below:
▪ Colours
▪ RGB Colour Model
▪ Errors
▪ MAC address
▪ URL
Colours
▪ Hexadecimal numbers are used to represent colours in various
software tools.
▪ A colour is represented in #RRGGBB format. RR, GG and BB
represent the hex number of red, green and blue colours.
▪ A pure blue colour is #0000FF, white is #FFFFFFF and black is
#0000000.
▪ Using this method, 256 variants of each colour can be made, hence
making a total of 256 reds × 256 greens × 256 blues.
▪ A shade of yellow is represented in hex format as #FEF65B.
RGB
Errors
▪ Error message contains a hex number that represents the
memory location of the error.
▪ This information is very useful to programmers.
▪ The error can be easily rectified by verifying the code in that
particular location.
MAC addresses
▪ A media access control address refers to the number on the Internet that
uniquely identifies a device on the Internet.
▪ This is the address of the network interface card (NIC).
▪ A MAC address is made up of 48 bits, which are shown as a six-group of
hexadecimal digits.
NN-NN-NN-DD-DD-DD or NN: NN: NN: DD: DD: DD
URL
▪ Hexadecimal values are used to represent web addresses or
URL (Uniform Resource Locator). The ASCII codes are used to
represent the web address.
▪ For example: [Link] becomes: (using the ASCII
codes)
HW – Worksheet on denary to
hexadecimal number system