Results 1 to 3 of 3

Math Help - One's Complement of a Number

  1. #1
    Super Member Aryth's Avatar
    Joined
    Feb 2007
    From
    USA
    Posts
    652
    Thanks
    2
    Awards
    1

    One's Complement of a Number

    Find the one's complement representations, using bit strings of length six, of the following integers:

    (a) 22
    (b) 31
    (c) -7
    (d) -19

    The book only explains how but gives no examples, and our professor never covered it in class. Any help is much appreciated.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Grandad's Avatar
    Joined
    Dec 2008
    From
    South Coast of England
    Posts
    2,570
    Thanks
    1

    Ones complemet

    Hello Aryth
    Quote Originally Posted by Aryth View Post
    Find the one's complement representations, using bit strings of length six, of the following integers:

    (a) 22
    (b) 31
    (c) -7
    (d) -19

    The book only explains how but gives no examples, and our professor never covered it in class. Any help is much appreciated.
    To find the six-bit ones complement:

    • If it's a positive number, simply write down the six bit binary number that represents the denary number
    • If it's negative, write down the binary representation, and then change all the zeros to ones, and ones to zeros.

    So the answers to (a) and (c) are:

    (a) 010110

    (c) 7 is 000111 in binary. So -7 is 111000 in ones complement

    I'll leave you to do the other two.

    Grandad


    Follow Math Help Forum on Facebook and Google+

  3. #3
    Super Member Aryth's Avatar
    Joined
    Feb 2007
    From
    USA
    Posts
    652
    Thanks
    2
    Awards
    1
    I appreciate the help.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Orthogonal Complement 2
    Posted in the Differential Geometry Forum
    Replies: 3
    Last Post: April 7th 2011, 07:15 PM
  2. two's complement
    Posted in the Number Theory Forum
    Replies: 2
    Last Post: January 26th 2011, 03:06 PM
  3. 10's complement
    Posted in the Advanced Math Topics Forum
    Replies: 2
    Last Post: March 25th 2010, 07:01 PM
  4. complement help
    Posted in the Discrete Math Forum
    Replies: 3
    Last Post: September 24th 2009, 11:49 AM
  5. 2s Complement
    Posted in the Discrete Math Forum
    Replies: 4
    Last Post: June 6th 2008, 09:00 AM

Search Tags


/mathhelpforum @mathhelpforum