example of binary subtraction of negative number


Example of binary subtraction of Negative number

Case 2.  Negative number is more than  the positive number ( i e, answer  is negative)

 Example : Subtract 9210 ( 10111002 ) from 4510 ( 1011012).

Solution : write both  numbers in 8 bit form

      00101101                                                          (4510)

      01011100                                                          (9210)

1 s complement of the negative number                10100011

Add 1                                                                             1

2 complement of the  negative  number                10100100

Adding  2 s  complement  of the  negative  number with  the first  (positive ) number,

      00101101 (4510)

    +10100100( -9210)

      11010001(-4710)

 No  carry means the answer  is negative  and is in 2  complement  form i e, 1101 0001 is 2 complement  of 001011112,  u e 7410 means  the answer is -4710.

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: example of binary subtraction of negative number
Reference No:- TGS0222085

Expected delivery within 24 Hours