- 2074 Asoj · 2+3 marks
39 to binary/hex and 2's complement addition
Short answer
39 decimal is 100111 binary and 27 hexadecimal. For -28+17 in 8-bit 2's complement: -28 = 1110 0100, +17 = 0001 0001; sum = 1111 0101 (no carry), representing -11 in decimal.
Convert decimal 39 into binary and hexadecimal. Use 2's complement method to perform the following addition (-28+17).
Decimal 39 to binary
| Division | Quotient | Remainder |
|---|---|---|
| 39 ÷ 2 | 19 | 1 |
| 19 ÷ 2 | 9 | 1 |
| 9 ÷ 2 | 4 | 1 |
| 4 ÷ 2 | 2 | 0 |
| 2 ÷ 2 | 1 | 0 |
| 1 ÷ 2 | 0 | 1 |
Answer:
Decimal 39 to hexadecimal
39 ÷ 16 = 2 remainder 7, and 2 ÷ 16 = 0 remainder 2. (Check: group binary 0010 0111 → 2 7.)
Answer:
(−28) + 17 using 2's complement (8 bits)
- 1's complement: ; add 1 →
1110 0100 (-28)
+ 0001 0001 (+17)
-----------
1111 0101 no end carry
No end carry and MSB = 1, so the answer is negative in 2's complement form. Its magnitude is the 2's complement: .
Answer:
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- 39 to Gray/Excess-3 and 2's complement addition · Digital Logic, chapter 1
- Convert octal 623.77 to decimal, binary, hex · Digital Logic, chapter 1
- Gray→BCD, decimal→Excess-3 and 2's complement addition · Digital Logic, chapter 1
- Convert 37.432 decimal to binary · Digital Logic, chapter 1
- Signed 1's complement addition of (-65)+(+15) · Digital Logic, chapter 5
- Convert (39.75)₁₀ to octal · Digital Logic, chapter 1
- Decimal to binary conversion · Computer Programming, chapter 5
- Binary to decimal in FORTRAN · Computer Programming, chapter 11
- FSM for binary serial addition · Discrete Structure, chapter 2