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.
Discussion:
15 comments Page 1 of 2.
Akshya said:
1 decade ago
Please explain this.
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.
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.
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.
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)
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
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)
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)
G.Haritha said:
9 years ago
Please tell the correct answer.
Sivapramod said:
8 years ago
@ Tejal.
Your answer is right.
Your answer is right.
Sasidhar said:
8 years ago
I too agree @Tejal.
Mahendra said:
8 years ago
I too agree @Tejal.
Kiran said:
7 years ago
No @Tejal.
Question is just about signed magnitude. Your explanation would be valid if and only if the question was about the signed 2s complement.
Question is just about signed magnitude. Your explanation would be valid if and only if the question was about the signed 2s complement.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers