How to differentiate negative binary from positive?
up vote
0
down vote
favorite
I do understand by reversing binary bits and adding 1 to the end would convert positive value to negative, for example:
Decimal = 53
Binary = 00110101 = (+53)
Negative Binary = 11001011 (-53)
But my concern is that 11001011
could also represent positive decimal 203
.
so how can I explain to something that 11001011
is (-53) and not(+203)
Thank you :)
binary
add a comment |
up vote
0
down vote
favorite
I do understand by reversing binary bits and adding 1 to the end would convert positive value to negative, for example:
Decimal = 53
Binary = 00110101 = (+53)
Negative Binary = 11001011 (-53)
But my concern is that 11001011
could also represent positive decimal 203
.
so how can I explain to something that 11001011
is (-53) and not(+203)
Thank you :)
binary
Kindly have a look at signed number representation.
– Math Lover
Nov 15 at 16:01
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I do understand by reversing binary bits and adding 1 to the end would convert positive value to negative, for example:
Decimal = 53
Binary = 00110101 = (+53)
Negative Binary = 11001011 (-53)
But my concern is that 11001011
could also represent positive decimal 203
.
so how can I explain to something that 11001011
is (-53) and not(+203)
Thank you :)
binary
I do understand by reversing binary bits and adding 1 to the end would convert positive value to negative, for example:
Decimal = 53
Binary = 00110101 = (+53)
Negative Binary = 11001011 (-53)
But my concern is that 11001011
could also represent positive decimal 203
.
so how can I explain to something that 11001011
is (-53) and not(+203)
Thank you :)
binary
binary
asked Nov 15 at 15:47
asdfasdfasdf
1
1
Kindly have a look at signed number representation.
– Math Lover
Nov 15 at 16:01
add a comment |
Kindly have a look at signed number representation.
– Math Lover
Nov 15 at 16:01
Kindly have a look at signed number representation.
– Math Lover
Nov 15 at 16:01
Kindly have a look at signed number representation.
– Math Lover
Nov 15 at 16:01
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2fmath.stackexchange.com%2fquestions%2f2999858%2fhow-to-differentiate-negative-binary-from-positive%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
Kindly have a look at signed number representation.
– Math Lover
Nov 15 at 16:01