Digital Electronics - Number Systems and Codes - Discussion

Discussion Forum : Number Systems and Codes - General Questions (Q.No. 46)
46.
Convert the following decimal number to hexadecimal.
125
7D16
D716
7C16
C716
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
2 comments Page 1 of 1.

Sanu said:   8 years ago
Divide 125 by 16 we get quotient as 7 and remainder 13.
Next, divide the quotient 7 by 16 we get 0 as quotient and 7 as remainder.
Then the answer will be 7 and we can write 13 as D So (7D)16.

Saeed said:   1 decade ago
First we convert to binary (divide by 2)

125 /2
62.5/2 1
31 /2 0
15.1/2 1
7.5 /2 1
3.5 /2 1
1.5 /2 1
0.5 /2 1

----> (1111101) binary

Now we convert to hexadecimal by taking 4 digit from right to left.

The last numbers in the left is (3) digit but we add (0) at the end to be in 4 digit .

0111 1101
(7 D) ----> Hexadecimal

Post your comments here:

Your comments will be displayed after verification.