Digital Electronics - Number Systems and Codes - Discussion

Discussion Forum : Number Systems and Codes - General Questions (Q.No. 71)
71.
Express the decimal number –37 as an 8-bit number in sign-magnitude.
10100101
00100101
11011000
11010001
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
15 comments Page 2 of 2.

Shreyas said:   1 decade ago
@Tejal you are write in the question they said to represent 2's complement and @Komal you are representing the number in binary form without 2's complement.
(1)

Komal said:   1 decade ago
Decimal number 37 = 00100101 in 8 bit Binary form
And sign representation depends on MSB bit,
If MSB = 1 then no is negative
If MSB = 0 then no is positive
So; to represent -37 placed 1 to MSB bit
Therefore;
Decimal number -37 = 10100101 in 8 bit Binary form
(1)

Tejal said:   1 decade ago
I would like to correct you pooja,
STEP 1: convert 37 to binary (37)=100101
STEP 2: add 00 ate the left of MSB as 00100101
STEP 3: take 1's complement as 11011010
STEP 4: Take 2's complement (by adding 1 to 1's complement of the no.) as
11011010
+ 1
---------
11011011

so the final answer for -37 is 11011011
and its not there is ant of the options.
(1)

Pooja said:   1 decade ago
The binary conversion of 37= 101101

Now to make 8 bit no we add 00 at left but as here 37 is negative so very first(MSB) we add 1

So it becomes 10100101 that's A.

Akshya said:   1 decade ago
Please explain this.


Post your comments here:

Your comments will be displayed after verification.