Adding binary numbers (overflow)

  • Thread starter Thread starter leonne
  • Start date Start date
  • Tags Tags
    Binary Numbers
leonne
Messages
163
Reaction score
0

Homework Statement


Hey, i don't really understand what they mean when its overflow when u add or subtract binary numbers like
1101
+
1010



Homework Equations





The Attempt at a Solution


I thought the answer is 10111 but they get +7 I know the+ is cause of the 1 in front but don't know why the answer is 7 and not 10111

I was thinking that the answer has more digits than the original but it seems not true from other examples
thanks
 
Physics news on Phys.org
The assumption here is that you only have four digits to contain the answer, like in a register on a computer. It can't hold 10111. Something has to go. The adder you are talking about will apparently just drop the leftmost fifth digit 1. That's called overflow. So the register will contain the incorrect answer 0111=7. Overflow isn't a good thing.
 
hey um i kind of thought of that, but why is 1110+1010 =11000 not overflow? or is it? In the book example for adding it shows this but says nothing about overflow and why is 0101+0110=1011 a overflow? Is it because there is a 0 in the beginning so you would only count 3 digits?
thanks
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...

Similar threads

Back
Top