Computer Science

Convert the following decimal numbers to hexadecimal:

(a) 132

(b) 2352

(c) 122

(d) 0.675

Number System

20 Likes

Answer

(a) 132

16QuotientRemainder
161324
1688
 0 

Therefore, (132)10 = (84)16

(b) 2352

16QuotientRemainder
1623520
161473
1699
 0 

Therefore, (2352)10 = (930)16

(c) 122

16QuotientRemainder
16122A (10)
1677
 0 

Therefore, (122)10 = (7A)16

(d) 0.675

Multiply=ResultantCarry
0.675 x 16=0.8A (10)
0.8 x 16=0.8C (12)
0.8 x 16=0.8C (12)
0.8 x 16=0.8C (12)
0.8 x 16=0.8C (12)

(We stop after 5 iterations if fractional part doesn't become 0)

Therefore, (0.675)10 = (0.ACCCC)16

Answered By

4 Likes


Related Questions