Hey, guys, what's up?
So today we will get a deeper understanding of how the data is actually stored in our system.
So how are positive numbers stored?
How are negative numbers stored?
How are my characters?
Stored and how the floating point numbers stored in our system.
So let us first talk about floor positive numbers.
OK.
So when I write and I was 10, I will get four bytes of memory space and I will write down here.
But obviously, this is not correct because the computer doesn't understand decimal numbers.
It only understand binary zero and one.
So I will get four by of space and I will write something like zero one zero zero one zero one and so
on.
OK.
So for storing the positive numbers, the approach is very easy.
Just convert positive numbers into their binary equal end.
And we will store that by number here, for example.
And I was wondering 123.
So I may get four by itself, memory space and we will store the binary code length of 123.
Suppose the biometrical end of wondering the three is one zero zero one zero one.
So this will be stored.
OK.
So when I have one to store and I was five, I want to store five.
I will store binary Quillin.
I will store one zero one.
OK.
Four bytes.
OK, so storing the positive numbers is very easy.
Just store their binary equivalent.
How to store negative numbers.
So we will see.
And sometime basically we will store or we will, we will see how to store negative numbers.
And next we do.
So now let us talk about how to store characters.
So when I write Cassie, it was a I will get one bytes of memory space and I will store it here.
But again, this is an artifact computer industry, not only binary zero and one.
So what happened is each character has been assigned some Wickwire value, some integer value.
OK.
So each character has been assigned some integer values known as Wickwire Values.
So the fair value of small is 97, B is ninety eight, C is ninety nine and so on.
Similarly, the value of capital is 65, B is 66 and so on.
Similarly, the value of character one is for.
And so on.
OK, so storing characters are very easy.
Just we will store the Oscar value of the corresponding character.
OK.
So each character has been assigned some Wickwire value and did ask a value will be converted into binary.
And then we will store the binding number.
For example, if you want to store a character.
So closely, it will be converted to 97.
With the help of the Oskay will lose.
So this is Oskay table.
And then this 97 will be converted to binary.
And that binary will be stored in one by itself.
Memory space.
OK, so now let's talk about how the floating point numbers are stored.
So how the floating by numbers are stored, for example, are flawed.
If it was one point thirty.
So what we will do wonder indoor temperate about minus two.
So we all know float is a four bytes.
So that is 22 bits.
So 26 bits will stored 123.
And the remaining six, six bits may be used to store minus two.
We know how to store a positive number.
We will convert it into binary and then we will store it and then we will store here.
Now how to store negative numbers.
I already told you we will see it in the next read.
OK.
So how does store negative numbers?
We will see it in the next video.
Now let us revise surveils during the pause.
You're doing numbers just to convert into binary for storing the characters with the help of escape
table ASCII values, which are integers.
And then we will convert that in Beijing to binary and stored and four floating.
I have 26 bids plus six minutes.
These are positive.
So we know how to store.
And for the six bids, we will see it in the next video.
Okay.
Binary form.
Now, in the next video, we will learn how to store negative numbers.
OK.
So this is it for this video.
Thanks for watching.