Is there anything wrong if the out come is zeroAdding and subtracting two's complementWhy we need to add 1 while doing 2's complementNormalised Floating point representationDefinition of Two's Complement?What would be the binary bit pattern in memory representing +66?Need explanation regarding the idea of two's complementWhat is the most negative number that can be represented in binary?How to find 9s complement of a given decimal number?Seven bit and two complimentWhat is the meaning of the number after Arithmetic shift?
How did sloshing prevent the Apollo Service Module from moving safely away from the Command Module and how was this fixed?
Should I hide my travel history to the UK when I apply for an Australian visa?
Is there ever a reason not to use Java 8's parallelSort?
Has there ever been a cold war other than between the U.S. and the U.S.S.R.?
Phrasing "it says" or "it reads"
Show that there are infinitely more problems than we will ever be able to compute
Park the computer
How to deal with administrative duties killing the research spirit?
Two queries on triangles, the sides of which have rational lengths
Does taking on an assistant professor position prevent me from doing post-docs later?
Why do we need a bootloader separate than our application program in MCU's?
What is meaning of 4 letter abbreviations in Roman names like Titus Flavius T. f. T. n. Sabinus?
Does the Defensive Duelist feat stack with the Warforged integrated protection?
Term for a character that only exists to be talked to
Will electrically joined dipoles of different lengths, at right angles, behave as a multiband antenna?
How frequently do Russian people still refer to others by their patronymic (отчество)?
Why did moving the mouse cursor cause Windows 95 to run more quickly?
What is this arch-and-tower near a road?
How to respond to someone who condemns behavior similar to what they exhibit?
Could you sell yourself into slavery in the USA?
Do I need to be legally qualified to install a Hive smart thermostat?
Data normalization before or after train-test split?
How to improve the size of cells in this table?
Contributing to a candidate as a Foreign National US Resident?
Is there anything wrong if the out come is zero
Adding and subtracting two's complementWhy we need to add 1 while doing 2's complementNormalised Floating point representationDefinition of Two's Complement?What would be the binary bit pattern in memory representing +66?Need explanation regarding the idea of two's complementWhat is the most negative number that can be represented in binary?How to find 9s complement of a given decimal number?Seven bit and two complimentWhat is the meaning of the number after Arithmetic shift?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
i'm doing an exercise on two complement, the question sound like this:
- Solving 11base10 – 11base10 using 2’s complement will lead to a problem; by using 7-bit data representation. Explain what the problem is and suggest steps to overcome the problem.
i got 0 for the answer because 11-11=0, what problem if the answer is 0?
and is there a way to overcome it?
twos-complement
add a comment |
i'm doing an exercise on two complement, the question sound like this:
- Solving 11base10 – 11base10 using 2’s complement will lead to a problem; by using 7-bit data representation. Explain what the problem is and suggest steps to overcome the problem.
i got 0 for the answer because 11-11=0, what problem if the answer is 0?
and is there a way to overcome it?
twos-complement
add a comment |
i'm doing an exercise on two complement, the question sound like this:
- Solving 11base10 – 11base10 using 2’s complement will lead to a problem; by using 7-bit data representation. Explain what the problem is and suggest steps to overcome the problem.
i got 0 for the answer because 11-11=0, what problem if the answer is 0?
and is there a way to overcome it?
twos-complement
i'm doing an exercise on two complement, the question sound like this:
- Solving 11base10 – 11base10 using 2’s complement will lead to a problem; by using 7-bit data representation. Explain what the problem is and suggest steps to overcome the problem.
i got 0 for the answer because 11-11=0, what problem if the answer is 0?
and is there a way to overcome it?
twos-complement
twos-complement
asked Mar 25 at 18:41
X unknownX unknown
13 bronze badges
13 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
So 11 in base 10 is the following in 7-bit base 2:
000 1011
To subtract 11, you need to find -11 first. One of the many ways is to invert all the bits and add 1, leaving you with:
111 0101
Add the two numbers together:
1000 0000
Well, that's interesting. The 8th bit is a 1.
You didn't end up with zero. Or did you?
That's the question that your homework is attempting to get you to answer.
it means that in 8 bit the outcome would be 128 because there is 1 at there
– X unknown
Mar 25 at 18:57
i think i got the answer for it thank you so much
– X unknown
Mar 25 at 18:58
Please feel free to mark this question as the answer if that helped.
– Broam
Apr 4 at 19:24
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55344501%2fis-there-anything-wrong-if-the-out-come-is-zero%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
So 11 in base 10 is the following in 7-bit base 2:
000 1011
To subtract 11, you need to find -11 first. One of the many ways is to invert all the bits and add 1, leaving you with:
111 0101
Add the two numbers together:
1000 0000
Well, that's interesting. The 8th bit is a 1.
You didn't end up with zero. Or did you?
That's the question that your homework is attempting to get you to answer.
it means that in 8 bit the outcome would be 128 because there is 1 at there
– X unknown
Mar 25 at 18:57
i think i got the answer for it thank you so much
– X unknown
Mar 25 at 18:58
Please feel free to mark this question as the answer if that helped.
– Broam
Apr 4 at 19:24
add a comment |
So 11 in base 10 is the following in 7-bit base 2:
000 1011
To subtract 11, you need to find -11 first. One of the many ways is to invert all the bits and add 1, leaving you with:
111 0101
Add the two numbers together:
1000 0000
Well, that's interesting. The 8th bit is a 1.
You didn't end up with zero. Or did you?
That's the question that your homework is attempting to get you to answer.
it means that in 8 bit the outcome would be 128 because there is 1 at there
– X unknown
Mar 25 at 18:57
i think i got the answer for it thank you so much
– X unknown
Mar 25 at 18:58
Please feel free to mark this question as the answer if that helped.
– Broam
Apr 4 at 19:24
add a comment |
So 11 in base 10 is the following in 7-bit base 2:
000 1011
To subtract 11, you need to find -11 first. One of the many ways is to invert all the bits and add 1, leaving you with:
111 0101
Add the two numbers together:
1000 0000
Well, that's interesting. The 8th bit is a 1.
You didn't end up with zero. Or did you?
That's the question that your homework is attempting to get you to answer.
So 11 in base 10 is the following in 7-bit base 2:
000 1011
To subtract 11, you need to find -11 first. One of the many ways is to invert all the bits and add 1, leaving you with:
111 0101
Add the two numbers together:
1000 0000
Well, that's interesting. The 8th bit is a 1.
You didn't end up with zero. Or did you?
That's the question that your homework is attempting to get you to answer.
answered Mar 25 at 18:50
BroamBroam
4,03618 silver badges37 bronze badges
4,03618 silver badges37 bronze badges
it means that in 8 bit the outcome would be 128 because there is 1 at there
– X unknown
Mar 25 at 18:57
i think i got the answer for it thank you so much
– X unknown
Mar 25 at 18:58
Please feel free to mark this question as the answer if that helped.
– Broam
Apr 4 at 19:24
add a comment |
it means that in 8 bit the outcome would be 128 because there is 1 at there
– X unknown
Mar 25 at 18:57
i think i got the answer for it thank you so much
– X unknown
Mar 25 at 18:58
Please feel free to mark this question as the answer if that helped.
– Broam
Apr 4 at 19:24
it means that in 8 bit the outcome would be 128 because there is 1 at there
– X unknown
Mar 25 at 18:57
it means that in 8 bit the outcome would be 128 because there is 1 at there
– X unknown
Mar 25 at 18:57
i think i got the answer for it thank you so much
– X unknown
Mar 25 at 18:58
i think i got the answer for it thank you so much
– X unknown
Mar 25 at 18:58
Please feel free to mark this question as the answer if that helped.
– Broam
Apr 4 at 19:24
Please feel free to mark this question as the answer if that helped.
– Broam
Apr 4 at 19:24
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55344501%2fis-there-anything-wrong-if-the-out-come-is-zero%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown