I'm trying to figure out how to subtract two binary numbers with a complementary one or two, When I need to address carrier and when not? Do I need to solve the problem in decimal numbers? And simultaneously see the answer in binary numbers? For example:
(10101010) - (1101101) complement of (1101101) is 0010010 then i take the first number and add it to the complement 10101010+ 0010010 _______ 10111100 the result of subtraction those number is : 111101 so what i`m understanding is i have a carrier so i`m take 111100 + 1 and i get the final result : 111101 now I`ll take another two numbers
(111001) - (10011) i`m doing the same procces and i dont get the right answer. what should i do? Do I need to complete the number to the eight bits? That is if you need to add zeros then the complement they will become one?
Thanks!