You are on page 1of 17

HEXADECIMAL

TO DECIMAL
DR. DANILO T. PANGATUNGAN
INSTRUCTOR
Hexadecimal
to decimal
• Hexadecimal to decimal is the
process of converting one number to
another in a number system. A
number system is a representation of
numbers by using digits or other
symbols in a consistent manner.
There are four types of number
systems namely, binary, octal,
decimal, and hexadecimal. Each of
these has its own unique base number
that distinguishes between the
systems.
Hexadecimal
• Hexadecimal has a base number of 16
whereas the decimal number system
has a base number of 10. Let us learn
how to convert hexadecimal to
decimal, the conversion table, and
solve a few examples to understand the
concept better.
• Hexadecimal to decimal conversion is
done by keeping the base numbers of
each of the number systems in mind.
What is The hexadecimal number system
Hexadecimal operates with both digits and characters
especially to represent the double-digit,
to Decimal characters are used. There are a total of
Conversion? 16 notations: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15 and 10-15 is
represented as A, B, C, D, E, F. Whereas
in the decimal number system, 10
notations are represented as 0, 1, 2, 3, 4,
5, 6, 7, 8, and 9.
To convert hexadecimal
to decimal
• To convert hexadecimal to decimal, we
first obtain the decimal equivalent of
hexadecimal from the conversion table,
multiply as digit with 16 to the power
of digit location and add all together.
The conversion table is mentioned
below:
HEXADECIMAL TO DECIMAL
CONVERSION TABLE
Hexadecimal Number System
Definition

• A hexadecimal number system is also known as a


positional number system as each digit has a weight of
power 16. Each digit is 16 times more significant than
the previous digit. Hence, when we convert any
hexadecimal number to any other number system, we
multiply the digits individually keeping the power of
16 in mind according to the placement of their
position. This number system uses sixteen
digits/alphabets: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and A, B, C,
D, E, F with the base number as 16. For example,
7DE16, E5F16, 9B4A16.
Decimal Number System
Definition

• Decimal number system has a


base of 10 with digits from 0-9.
Numbers in daily life are
generally represented in this form.
For example, 2410, 65410, 201210.
How to Convert Hexadecimal
to Decimal?

• The conversion of hexadecimal to decimal is


done by using the base number 16. The
hexadecimal digit is expanded to multiply each
digit with the power of 16. The power starts at 0
from the right moving forward towards the right
with the increase in power. For the conversion to
complete, the multiplied numbers are added.
• Decimal Number = dn-1 × 16r-1+....+ d2 × 162 + d1 × 161 + d0 × 160.
• Where,
• n = number of digits.
• r = placement of the digit.
• The steps to convert hexadecimal to decimal are:
• Obtain the decimal equivalent of hexadecimal from the conversion
table. (table mentioned above)
• Multiply each digit with the power of 16 starting at 0 from the right.
• Add all the numbers together.
Let us look at an example to understand this
better.

• For example: Convert hexadecimal


number (25)16 to its decimal form.
• (25)16 = 2 × 161 + 5 × 160
• = 2 × 16 + 5 × 1
• = 32 + 5
• = 37
• Therefore, (25)16 = (37)10.
Hexadecimal to Decimal
Formula

• Hexadecimal to decimal formula conversion uses the following


method:
• The base of the number to be converted here is 16.
• Multiply each digit of the given number, starting from the
rightmost digit, with the exponents of the base 16.
• The exponents should start with 0 and increase by 1 every time
as we move from right to left.
• We just simplify each of the products and add them.
• The hex to decimal conversion formula is given as:
• dn−1…d1d0(hex)=dn−1×16n−1+…+d1×161+d0×160(decimal)
•ANOTHER
EXAMPLE
Example 1: Using Hexadecimal to Decimal Formula,
Convert (5BC)1616 into the decimal system.
• Solution:
• To find: (5BC)1616 in the decimal system
• In Hexadecimal system,
• 5=5
• B = 11
• C = 12
• Using hexadecimal to decimal formula,
• (5BC)1616 = ( 5 × 162 + 11 × 161 + 12 × 160 )
• = 5 × 256 + 11 × 16 + 12× 1
• = (1468)1010
• Therefore, (5BC)1616 =(1468)10
Example 2: Convert 8CF (hexadecimal) to
decimal
• Solution:
• To find: 8CF (hex) in Decimal
• In the Hexadecimal system,
• 8=8
• C = 12
• F = 14
• Using hex to decimal formula,
• (8CF)1616= ( 8 × 162 + 12 × 161 + 15 × 160 )
• = 8 × 256 + 12 × 16 + 15 × 1
• = (2255)1010
• Therefore, (8CF)1616 = (2255)1010.
Example 3: Convert 1D9 (hexadecimal) to
decimal.
• Solution:
• To find: 1D9 (hexadecimal) in Decimal
• In the Hexadecimal system,
• 1=1
• D = 13
• 9=9
• (1D9)1616= ( 1 × 162 + 13 × 161 + 9 × 160 )
• = 1 × 256 + 13 × 16 + 9 × 1
• = (473)1010
• Therefore, (1D9)1616 = (473)1010.
References
• https://www.cuemath.com/numbers/hexadeci
mal-to-decimal/
]
• https://www.math-drills.com/numbersense/
base_number_systems_converting_hexadeci
mal_decimal_001.php

You might also like