2's Complement in python help.

Discussion in 'Python' started by lokeshkoppaka, May 23, 2013.

  1. Can anyone give me an idea of how to find the 2's Complement in python with an example
     
    lokeshkoppaka, May 23, 2013
    #1
    1. Advertisements

  2. Do you know what two's complement is? (Not to be confused with two's
    compliment, which is when numbers start telling you how clever you
    are.) If not, you should probably look it up on Wikipedia or
    something. Once you know what the term means, you can start
    implementing in Python.

    ChrisA
     
    Chris Angelico, May 23, 2013
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.