You are Here: Home >< Maths

# Binary Two's Complement Conversion Watch

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.
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".

TSR Support Team

We have a brilliant team of more than 60 Support Team members looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

This forum is supported by:
Updated: May 25, 2016
Today on TSR

### Anxious about my Oxford offer

What should I do?

### US couple arrested - 13 children chained up

Discussions on TSR

• Latest
• ## See more of what you like on The Student Room

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

• Poll
Useful resources

### Maths Forum posting guidelines

Not sure where to post? Read the updated guidelines here

### How to use LaTex

Writing equations the easy way

### Study habits of A* students

Top tips from students who have already aced their exams

## Groups associated with this forum:

View associated groups
Discussions on TSR

• Latest
• ## See more of what you like on The Student Room

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

• The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE