GATE CSE
First time here? Checkout the FAQ!
x
0 votes
36 views
So I'm asked to convert 300 (decimal) into binary and hexadecimal for a single byte (8-bit) unsigned number. I get:

300 = 100101100 = 12C

But isn't 100101100 a 9 digit number, and so a 9-bit number? Am I missing something here?
asked in Digital Logic by (281 points)   | 36 views

1 Answer

+1 vote
Best answer

So you are trying to store 300 in 8 bit in unsigned number (as I understood by your explanation)

but bro range of 8 bit unsigned is  (0 to 2 ^n -1) here n =8 , than 0 to 255 .

You need 9 bit to store 300 and your both conversion are right .

answered by Active (1.8k points)  
selected by


Top Users Sep 2017
  1. Habibkhan

    7184 Points

  2. Warrior

    2664 Points

  3. Arjun

    2582 Points

  4. rishu_darkshadow

    2520 Points

  5. A_i_$_h

    2280 Points

  6. nikunj

    1980 Points

  7. manu00x

    1856 Points

  8. makhdoom ghaya

    1770 Points

  9. Bikram

    1744 Points

  10. SiddharthMahapatra

    1718 Points


26,151 questions
33,733 answers
79,970 comments
31,120 users