Results 1 to 2 of 2

Math Help - 2's complement binary

  1. #1
    Junior Member
    Joined
    Aug 2007
    Posts
    37

    2's complement binary

    Assuming a 8-Bit number system, use the 2's complement method to perform the following arithemetic. Verify your anwsers, showing all workings.

    113_{10}
    - 98_{10}


    98_{10}
    - 113_{10}

    Exam tomorrow and I need to know how to do this question. Any help would be amazing. Thanks
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Super Member
    earboth's Avatar
    Joined
    Jan 2006
    From
    Germany
    Posts
    5,806
    Thanks
    116
    Quote Originally Posted by gary223 View Post
    Assuming a 8-Bit number system, use the 2's complement method to perform the following arithemetic. Verify your anwsers, showing all workings.

    113_{10}
    - 98_{10}

    ...
    Hello,

    I assume that you know how to convert a number of decimal system in a binary number.
    Code:
    113   =======>  01110001   [a]
       10
     98   =======>  01100010   [b]
       10
    
    -98   =======>  10011101   [c]
       10
               +    00000001   [d]
    ----------------------------
                  1|00001111   [e]
    [a] 113 converted into binary number
    [b] 98 converted into binary number
    [c] change every digit. The first digit correspond to the sign: 0 means +, 1 means -.
    [d] add 1
    [e] now add [a], [c],[d]. You have to use a carry-bit which is always set to 1 if the sum of three digits is 2 or 3.
    [e] the result are the last 8 digits

    Convert the dual number 00001111 ==> 15

    Seems to be the right result.
    Last edited by earboth; August 21st 2007 at 08:30 PM.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. two's complement
    Posted in the Number Theory Forum
    Replies: 2
    Last Post: January 26th 2011, 02:06 PM
  2. Binary subtraction using 2's complement
    Posted in the Algebra Forum
    Replies: 1
    Last Post: April 11th 2010, 12:57 PM
  3. 10's complement
    Posted in the Advanced Math Topics Forum
    Replies: 2
    Last Post: March 25th 2010, 06:01 PM
  4. complement help
    Posted in the Discrete Math Forum
    Replies: 3
    Last Post: September 24th 2009, 10:49 AM
  5. 2s Complement
    Posted in the Discrete Math Forum
    Replies: 4
    Last Post: June 6th 2008, 08:00 AM

Search Tags


/mathhelpforum @mathhelpforum