Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

Hexadecimal Numbers

Conversion
What are hexadecimal numbers?
• 0 to 9, A, B, C, D, E, F
• E.g. A9:12:B3:CF:39:DE
In relation to binary & decimal
numbers
Binary Numbers Decimal Numbers Hexadecimal Numbers
• 0 • 0 • 0
• 1 • 1 • 1
• 10 • 2 • 2
• 11 • 3 • 3
• 100 • 4 • 4
• 101 • 5 • 5
• 110 • 6 • 6
• 111 • 7 • 7
• 1000 • 8 • 8
• 1001 • 9 • 9
• 1010 • 10 • A
• 1011 • 11 • B
• 1100 • 12 • C
• 1101 • 13 • D
• 1110 • 14 • E
• 1111 • 15 • F
• 10000 • 16 • 10
More on hexadecimal numbers
• Adding up 2 hexadecimal numbers
1+1=2
 F + 1 = 10
 10 + 1 = 11
 1F + 1 = 20
Useful things to remember
Binary Decimal Hexadecimal
• 1 • 1 • 1
• 10 • 2 • 2
• 100 • 4 • 4
• 1000 • 8 • 8
• 10000 • 16 • 10
• 100000 • 32 • 20
• 1000000 • 64 • 40
• 10000000 • 128 • 80
Binary to Hexadecimal Numbers
• Refer to the conversion table in the earlier
slide
• 10010101

80 10 4 1
• Adding up these 4 numbers gives you 95 (in
hexadecimal notation)
Hexadecimal to Binary Numbers
• Convert 54 to a binary number
1. Using the same useful table shown earlier,
choose a number small than or equal to 54
2. That will give us 40 which is 1000000 in binary
3. Next, deduct 40 from 54. That equates 14.
4. Again, choose from the table a number small
than or equal to 14
5. That gives us 10 which is 10000 in binary
Hexadecimal to Binary Numbers
• Repeat the steps again: deduct 10 from 14.
That gives us 4
• Choose from the table a number small than or
equal to 4 and it gives us 100 in binary
• Finally sum up all the binary numbers:
1000000 + 10000 + 100 = 1010100
Hexadecimal to Decimal
• Using the same approach, you will also be
able to convert hexadecimal numbers to
decimal numbers.

You might also like