Calculating Negative Binary Numbers

Saint Nick

Lifer
Jan 21, 2005
17,722
6
81
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.
 

smack Down

Diamond Member
Sep 10, 2005
4,507
0
0
Clearly that is wrong. You failed at addition
You only add 1 to the flipped bits not the orginal + flipped + 1
 

spidey07

No Lifer
Aug 4, 2000
65,469
5
76
do your own homework.

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

mugs

Lifer
Apr 29, 2003
48,920
46
91
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
 

MagnusTheBrewer

IN MEMORIAM
Jun 19, 2004
24,122
1,594
126
Oh, ho, ho, ho. So, I see someone wants help with his machine language homework. Sorry, studying ML has damned you to hell already.
 

TuxDave

Lifer
Oct 8, 2002
10,571
3
71
Original Number
0000 0000 0100 0000

Inverted Number
1111 1111 1011 1111

Plus 1
1111 1111 1100 0000 <-- 2's Complement of Original Number
 

Kyteland

Diamond Member
Dec 30, 2002
5,747
1
81
1111 1111 1011 1111
0000 0000 0000 0001 +
---------------------------
1111 1111 1100 0000
 

spidey07

No Lifer
Aug 4, 2000
65,469
5
76
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.
 

Saint Nick

Lifer
Jan 21, 2005
17,722
6
81
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.
 

cronic

Golden Member
Jan 15, 2005
1,782
0
0
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.
 

TuxDave

Lifer
Oct 8, 2002
10,571
3
71
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.
 

gsethi

Diamond Member
Feb 28, 2002
3,457
5
81
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.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |