Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
To create the two's complement:
Write it out as a binary number ( 0 0 0 0 1 0 1 0 )
Invert all the bits
Add 1
You now have the twos complement, convert back to hex if required.
JimB
0 0 0 0 1 0 1 0
1 1 1 1 0 1 0 1
1 1 1 1 0 1 1 0
128, 64, 32, 16, 8, 4, 2, 1
1 1 1 1 0 1 [COLOR="Red"]1 0[/COLOR]
one last question and i know its stupid but whats 2's compliment??
can you tell me if i got this write using your example please
"(00001010)" so this inverted is 11110101?? is that right?? Yes, this is also known as the 1's complement
and adding 1 to it makes it 11110110??? and convert to hex (on the calculator) makes it f6??
do i have that correct?? Yes. correct again
one last question and i know its stupid but whats 2's compliment??