Hey! Sign in to get help with your study questionsNew here? Join for free to post

Binary Two's Complement Conversion

Announcements Posted on
TSR's new app is coming! Sign up here to try it first >> 17-10-2016
    • Thread Starter

    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.

    (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".
Write a reply…


Submit reply


Thanks for posting! You just need to create an account in order to submit the post
  1. this can't be left blank
    that username has been taken, please choose another Forgotten your password?
  2. this can't be left blank
    this email is already registered. Forgotten your password?
  3. this can't be left blank

    6 characters or longer with both numbers and letters is safer

  4. this can't be left empty
    your full birthday is required
  1. Oops, you need to agree to our Ts&Cs to register
  2. Slide to join now Processing…

Updated: May 25, 2016
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.

Do you like sleeping in a cold room?
Useful resources

Make your revision easier


Maths Forum posting guidelines

Not sure where to post? Read here first


How to use LaTex

Writing equations the easy way

Student revising

Study habits of A* students

Top tips from students who have already aced their exams

Study Planner

Create your own Study Planner

Never miss a deadline again

Polling station sign

Thinking about a maths degree?

Chat with other maths applicants

Can you help? Study help unanswered threads

Groups associated with this forum:

View associated groups
Study resources

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

Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.