Now, we're going to continue working on our ad there, but now we're going to see how we can add to
site numbers.
Remember, now adding and subtracting can be the same thing you can always add instead of subtracting
two numbers.
If you have the binary representation, you can simply just add to negative numbers and then you'll
get that negative result.
Right.
So if I add one one, one one and one one one zero, I should be getting one one zero one because I'm
adding an already represented negative.
No, no.
I want to show you and demonstrate this to you in the simulator.
Now, we're going to keep looking at this table right here.
Let us go back to the binary representation for all of these.
So I'm going to go value arbitrary.
And I want it to be zero binary.
OK?
So what I want to do is I want to show you in the Forbert system how we can write numbers.
No, let us assume that all of these if we go to the Reddick's, they are first unsign numbers.
OK.
No, take a look at the simulator.
Now, all of these let us try them to be first as let's say, unsign numbers.
OK, so let's say I put.
One, one, one I should be getting.
Seven, right, so here I can see a presentation now if I put all of these numbers as once, well,
I'm getting a 15, isn't that correct?
This is one of my number are unsigned, so my range is between zero and 15.
This is the range I can get from Flaubert's, as we have learned now, the moment I write the click
here, I convert this to sign decimal.
This whole thing changes.
Now I have a minus one.
Remember that table, as you can see when we have all the ones.
This is a minus one.
OK, that's a great.
Now let's say I want to represent minus seven.
I need to put one zero zero one that has demonstrated this.
So I need one zero zero one, so when these are zero, I get the minus seven right here.
That's great.
So let's say I will have an operation of minus three, minus three, it should equal minus six.
Right.
But we are not subtracting anything.
We are just adding the representation of minus three to the representation of minus three.
And we are getting a minus six.
Right.
It's only a representation, but the whole thing is just addition, as we have learned previously.
So if I go here now.
And they say, OK, I want to add minus three and minus three, let's go back to the table.
So minus three right here is one zero one one.
So.
This is one.
Zero.
And here I have one one and I get minus three, that's a great.
Same thing here.
I could just divert as it is so I could just type it manually, so I'll just go to value arbitrary value
and here it is, minus three.
It is sine decimal.
So if I put minus three.
I get the minus three.
OK, great, now that the simulator's.
And I got to tell you why, because this is a still in the.
Unsigned, your presentation.
So I just go to radix, make it signed, and I get the right result.
So all of these computations, all of this crazy stuff, it's all about that circuit that can add one
plus one or one plus zero.
All the electronic revolution you're seeing right now, is it just from creating a system that can add
to binary numbers?
Subtraction can be.
I mean, subtraction is just a subset of addition, multiplication is the same thing, the division
is the same thing.
So this is how we add sound numbers.
And I just want you to know that when the system is larger, the representation will be different.
This means right now, minus eight is one zero zero zero.
Right.
But if I have, let's say, eight bit system minus eight will not be this number.
The whole thing will change.
So it's very important to know what is the length of the binary system you're working with.
I mean, if you remember from the previous four better representation of the same numbers, we got something
different that we compare them to you.
So.
This is the this is the three bits, not the four, but of the three bits.
Take a look at the minus to the minus two is one one one zero.
But here the minus two is one one zero.
The minus three is one zero one, but here the minus three is one one zero one.
So the whole representation changes.
It depends on the length of the binary system you are working with.