Decimal To Hexadecimal Conversion

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

HEXADECIMAL T0

DECIMAL CONVERSION
Example:
Solution:

𝟕𝟖𝑫𝑬𝟏𝟔 =(7 × 𝟏𝟔𝟑 ) + (8 × 𝟏𝟔𝟐 ) + (D × 𝟏𝟔𝟏 ) + (E × 𝟏𝟔𝟎 )


=(7 × 4096 ) + (8 × 256) + (13 × 16) + ( 14 × 1)
= 28672 + 2048 + 208 + 14
= 30942
Therefore, the decimal equivalent of 𝟕𝟖𝑫𝑬 𝟏𝟔 = 𝟑𝟎𝟗𝟒𝟐𝟏𝟎
DECIMAL TO
HEXADECIMAL
CONVERSION
HEXADECIMAL NUMBER SYSTEM

• hexadecimal numbers are represented by only 16 symbols.


These symbols or values are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C,
D, E and F.
CONVERTING DECIMAL TO HEXADECIMAL
Steps:
1. Divide the decimal number by 16.
2. If the number will not divide equally by 16, then round down the answer to the
nearest whole number (integer).
3. Keep a note of the remainder, it should be between 0 and 15.
4. Keep repeating the above steps, dividing each answer by 16, until you reach zero.
5. Write out all the remainders, from bottom to top.
6. Finally, convert any remainders bigger than 9 into hexadecimal letters.
DECIMAL TO HEXADECIMAL CONVERSION
TABLE
DECIMAL
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
HEXADECI
MAL
0 1 2 3 4 5 6 7 8 9 A B C D E F
CONVERT TO HEX

756210 = 1D8A16
CONVERT TO HEX

Division Remainder Remainder


Quotient Digit #
by 16 (decimal) (hex)

35631/16 2226 15 F 0
2226/16 139 2 2 1
139/16 8 11 B 2
8/16 0 8 8 3

3563110 = 8B2F16
CONVERT TO HEX
Division by 16 Quotient Remainder Remainder Digit #
(decimal) (Hex)
multiply by 16
CONVERT TO HEX
Division by 16 Quotient Remainder Remainder Digit #
(decimal) (Hex)
multiply by 16
Seatwork #2
Solve this with solution

• 𝟑𝟐𝟑𝟒𝟓𝟏𝟎
• 𝟐𝟑𝟒𝟓𝟑𝟏𝟎
• 𝟗𝟖𝟒𝟑𝟏𝟏𝟎
• 𝟔𝟕𝟎𝟗𝟖𝟏𝟎
• 𝟖𝟗𝟑𝟐𝟑𝟏𝟎
OCTAL TO DECIMAL
CONVERSION
CONVERT 20578 TO DECIMAL
• 20578 = (2 x 83) + (0 x 82) + (5 x 81) + (7x80)
= 1024 + 0 + 40 + 7
= 107110
DECIMAL TO OCTAL
CONVERSION
OCTAL NUMBER SYSTEM

• The numbers with the base number as 8.


• Decimal numbers are represented as N8.
• It uses eight digits (N) to represent the values.
• 01234567
DECIMAL TO OCTAL CONVERSION
• A method of converting a decimal number to an octal number is the
repeated division-by-8 method and write the acquired remainder in
reverse to derive at the equivalent octal number.
CONVERT 39410 TO OCTAL
Division by 8 Quotient Remainder (decimal) Digit #
(multiply by 8)
394/8 49 2
49/8 6 1
6/8 0 6
The answer is 6128
CONVERT 35910 TO OCTAL
Division by 8 Quotient Remainder (decimal) Digit #
(multiply by 8)
359/8 44 7
44/8 5 4
5/8 0 5
The answer is 5478
TRY THIS!
CONVERT 559310 TO OCTAL
Division by 8 Quotient Remainder (decimal) Digit #
(multiply by 8)
CONVERT 120910 TO OCTAL
Division by 8 Quotient Remainder (decimal) Digit #
(multiply by 8)
Seatwork #2!
Solve this with solution

• 𝟑𝟐𝟑𝟒𝟓𝟏𝟎
• 𝟐𝟑𝟒𝟓𝟑𝟏𝟎
• 𝟗𝟖𝟒𝟑𝟏𝟏𝟎
• 𝟔𝟕𝟎𝟗𝟖𝟏𝟎
• 𝟖𝟗𝟑𝟐𝟑𝟏𝟎
THANKYOU!

You might also like