• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Calculating Negative Binary Numbers

I'm trying to convert 0000 0000 0100 0000 to negative, and I am coming up with 0111 1011 1101 0111 0000. Is that right?

I know you have to take the orignal, flip the bits, then add one, like this:

0000 0000 0100 0000
1111 1111 1011 1111
0000 0000 0000 0001

and i came up with 0111 1011 1101 0111 0000. Could someone double check this for me? I have another one I might have a question on, too.
 
do your own homework.

And it depends on the binary system to how you do negative numbers. Without knowing this there is no answer.
 
Originally posted by: spidey07
do your own homework.

And it depends on the binary system to how you do negative numbers. Without knowing this there is no answer.

Two's complement based on his explanation
 
Oh, ho, ho, ho. So, I see someone wants help with his machine language homework. Sorry, studying ML has damned you to hell already.
 
Original Number
0000 0000 0100 0000

Inverted Number
1111 1111 1011 1111

Plus 1
1111 1111 1100 0000 <-- 2's Complement of Original Number
 
Originally posted by: mugs
Originally posted by: spidey07
do your own homework.

And it depends on the binary system to how you do negative numbers. Without knowing this there is no answer.

Two's complement based on his explanation

Quiet! I'm trying to make him learn something.
😉
 
Originally posted by: spidey07
Originally posted by: mugs
Originally posted by: spidey07
do your own homework.

And it depends on the binary system to how you do negative numbers. Without knowing this there is no answer.

Two's complement based on his explanation

Quiet! I'm trying to make him learn something.
😉


Well I obviously am trying to learn here, but I do appreciate a little help every now and then. At least I didn't come in not showing any of my original work and just asking for the answer.
 
The easiest way to remeber 2's complement is to go to the first 1 in the number, keep it, and invert everything after it.

I find it amusing that any question pretaining to class work is frowned upon by some members. Forums have a wealth of knowledge to draw from and should be used for such. good look.
 
Originally posted by: cronic
The easiest way to remeber 2's complement is to go to the first 1 in the number, keep it, and invert everything after it.

I find it amusing that any question pretaining to class work is frowned upon by some members. Forums have a wealth of knowledge to draw from and should be used for such. good look.

0110 --Invert--> 1001 --Plus 1--> 1010 <-- 2's Complement

Your method:
0110 --> 0101?

Edit: Oh.. unless you're counting 1st from the right...

0110 --> 1010. Interesting.
 
Originally posted by: pOwder
I'm trying to convert 0000 0000 0100 0000 to negative, and I am coming up with 0111 1011 1101 0111 0000. Is that right?

I know you have to take the orignal, flip the bits, then add one, like this:

0000 0000 0100 0000
1111 1111 1011 1111
0000 0000 0000 0001

and i came up with 0111 1011 1101 0111 0000. Could someone double check this for me? I have another one I might have a question on, too.

Pls Explain on how you got this:

1111 1111 1011 1111
0000 0000 0000 0001 +
--------------------------
0111 1011 1101 0111 0000 =
--------------------------

What kind of "tion" 😉 is that ? Definitely not addition and not subtraction or multiplication.
 
Back
Top