Results 1 to 2 of 2

Math Help - Binary subtraction using 2's complement

  1. #1
    Junior Member
    Joined
    Aug 2007
    Posts
    37

    Binary subtraction using 2's complement

    Subtract 1010 from 1110 using 2's complement subtraction.

    I got the following:

    1110
    0001
    +1
    0010

    1010
    0010
    1100

    0100

    1011

    1011
    +1
    1100

    MSB = -

    So answer = 0100

    Final Answer
    1010 from 1110 = 0100

    Is this correct?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Joined
    Dec 2009
    Posts
    3,120
    Thanks
    1
    Hi gary223,

    To subtract 01010 from 01110 in binary,
    we write the 2's complement of 01010 and add instead.
    Invert all the bits of 01010 and add 1 gives 10101+0001=10110

    We add 10110 to 01110

    \color{blue}11100\ carry
    01110
    10110
    ------
    00100
    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. 10's complement
    Posted in the Advanced Math Topics Forum
    Replies: 2
    Last Post: March 25th 2010, 06:01 PM
  3. Replies: 1
    Last Post: August 5th 2008, 06:06 PM
  4. 2s Complement
    Posted in the Discrete Math Forum
    Replies: 4
    Last Post: June 6th 2008, 08:00 AM
  5. 2's complement binary
    Posted in the Algebra Forum
    Replies: 1
    Last Post: August 21st 2007, 10:38 AM

Search Tags


/mathhelpforum @mathhelpforum