# subtracting two binary numbers...

Status
Not open for further replies.

#### simrantogether

##### Member
what is the best way of 'subtracting any two values in binary forms - using borrowing method' - without using 2's complement...

Regards,

Simran

A=B-C.

Mike.

#### Ratchit

##### Well-Known Member
what is the best way of 'subtracting any two values in binary forms - using borrowing method' - without using 2's complement...

Regards,

Simran
Perhaps you would like to give some example problems. If a negative number is already in twos comlement form, then how are you going to not deal with twos complement?

Ratch

#### simrantogether

##### Member
Well i got the answer but still ... as an example i give
you would like to give some example problems.
is:

1000010000- 0000000111 = 1000001001

Regards,

Simran

Last edited:

#### Pommie

##### Well-Known Member
You subtract them the same way you would in base 10. Start in the right column with 0-1 and borrow 2 from column two.

Like this,
.

Mike.

Last edited:

#### simrantogether

##### Member
i'm unable to find the answer... if anybody can help... (subtracting in binary form)...

100100100 - 000011011 = ?

i'm getting answer as : 100000001 which when verified comes wrong... (using borrowing method)...

Here you go,

292-27=265

Mike.

#### simrantogether

##### Member
thanks and sorry to everyone who tried to make me understand... but i still didnt got....

well, everything is OK. ... anyhow...

,

Simran

Last edited: