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.
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)
Mark said:
7 months ago
Express the decimal number –37 as an 8-bit number in sign magnitude.
In sign-magnitude notation, the first bit indicates the sign of the number: 0 for positive and 1 for negative.
The remaining bits represent the magnitude of the number.
In sign-magnitude notation, the first bit indicates the sign of the number: 0 for positive and 1 for negative.
The remaining bits represent the magnitude of the number.
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.
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)
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.
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.
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.
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.
Anon said:
6 years ago
To use 2's complement when the magnitude is negative. Am I right?
(2)
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers