in Digital Logic edited by
516 views
1 vote
1 vote

The octal representation of an integer is (342)8. If this were to be treated as an eight-bit signed integer in 2's complement representation, its decimal equivalent is _________

  1. 226
  2. -30
  3. 76
  4. -98
in Digital Logic edited by
516 views

1 Answer

4 votes
4 votes
Best answer
$(342)_8 =(11 100 010)_2 = (-30)_{10}$
selected by
by

2 Comments

why haven't you considered 0 ( 011100010 ) as the sign bit? I calculated the answer as 226.

0
0
because of eight-bit signed integer.
0
0

Related questions