# Binary Two's Complement ConversionWatch

Announcements
#1
In Computing, if we have some number (let's say 23) represented as binary (010111) and we want to convert this to a two's complement we can read it from right to left, leaving every bit up to the first 1 then inverting all bits.

So -23 would be 101001

For those who do not know how two's complement works the first bit in this pattern is considered as negative then the value of every bit after this is added on. So for this example we would have -32+8+1 = -23

My question is WHY does this inversion work?

I tried reasoning this by considering a similar scenario in base 10 but I am not quite comfortable enough converting between bases (or even that comfortable with base two) to solve my issue.
0
3 years ago
#2
(Original post by Mav1)
...
This wiki article may be of some use. It's rather lengthy, and has a small section in the middle on "why".
0
X

new posts
Latest
My Feed

### Oops, nobody has postedin the last few hours.

Why not re-start the conversation?

see more

### See more of what you like onThe Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

### University open days

• SOAS University of London
Wed, 29 May '19
• University of Exeter
Thu, 30 May '19
• Cranfield University
Cranfield Forensic MSc Programme Open Day Postgraduate
Fri, 31 May '19

### Poll

Join the discussion

Loved the paper - Feeling positive (222)
22.72%
The paper was reasonable (441)
45.14%
Not feeling great about that exam... (176)
18.01%
It was TERRIBLE (138)
14.12%