I have some real data. For example +2
and -3
. These data are represented in two's complement fixed point with 4 bit binary value where MSB represents the sign bit and number of fractional bit is zero.
So +2 = 0010
-3 = 1101
addition of this two numbers is (+2) + (-3)=-1
(0010)+(1101)=(1111)
But in case of subtraction (+2)-(-3)
what should i do?
Is it needed to take the two's complement of 1101 (-3)
again and add with 0010
?