thebokygeek
Newbie
How can I subtract 5 from 7
i) Binary representation of 5 is (0101)2. The 1’s complement of 5 is then: (1010)2
ii) 2’s complement of 5 = (1’s complement of 5 + 1) = (1010 + 1)2 = (1011)2.
iii) Now, 7 + (-5) = 0111 + 1011 = (1)0010
Any help?
Was taken the reference from here.
i) Binary representation of 5 is (0101)2. The 1’s complement of 5 is then: (1010)2
ii) 2’s complement of 5 = (1’s complement of 5 + 1) = (1010 + 1)2 = (1011)2.
iii) Now, 7 + (-5) = 0111 + 1011 = (1)0010
Any help?
Was taken the reference from here.