CBSE Class 11 | Number System 6

Decimal to Hexadecimal conversion

How to convert from decimal to hexadecimal

Conversion steps:

1. Divide the number by 16.
2. Get the integer quotient for the next iteration.
3. Get the remainder for the hex digit.
4. Repeat the steps until the quotient is equal to 0.

Example:1

Convert 25 decimal to hexadecimal:
(25)10 = (n)16

Division By 16 Quotient Remainder
25/16 1 9
1/16 0 1

So , we have

(25)10 = (19)16

 

Example:2

Convert 31 decimal to hexadecimal:
(31)10 = (n)16

Division By 16 Quotient Remainder
31/16 1 15(F)
1/16 0 1

So , we have

(31)10 = (1F)16

 

Example:3

Convert 159 decimal to hexadecimal:
(159)10 = (n)16

Division By 16 Quotient Remainder
159/16 9 15(F)
9/16 0 9

So , we have

(159)10 = (9F)16