(1234)hex=(0001 0010 0011 0100)2
(DA57)hex=(1101 1010 0101 0111)2
Taking,
(1234)hex=(0001 0010 0011 0100)2
=(1110 1101 1100 1011) -1s complement
=(1110 1101 1100 1100) -2s complement
Now ,add 2s complement of (1234)hex with (DA57)hex, we get
1110 1101 1100 1100
+ 1101 1010 0101 0111
1 1100 1000 0010 0011
There is a Carry bit
Since,carry is generated.so,no is negative
Then take 2s complement of above no.Thus ,we get
0011 0111 1101 1101=(37DD)hex
(1234)hex -(DA57)hex =37DD)hex
Chat with our AI personalities
x=1, y=1
If you mean, for example, divide one hexadecimal number by another: In any number base, you can use basically the same method you use with decimal numbers - in the case of division, the "long division". However, you have to use the corresponding multiplication table, for example, the multiplication table for multiplying two hexadecimal digits, with a hexadecimal result.
it is subtraction not substraction
You need two equations to use the addition method.
Column method can be used for both !