We can also use binary to show denary numbers (like 32 or 47). This is done by using these:
124 64 32 16 8 4 2 1
This is done by adding the numbers that have a 1 and not add them when they have a 0 like this.
So this would be 1+4+32= 37
Adding binary is simple! Just put the two pieces of binary on top of each other and add the two number that are paired
When adding binary, you have to remember that 1+1 is not equal to 2 but 10. However, 1+0 is still 1 and 0+0 is 0. When you get a 10 you have to carry the one. This can sometimes cause an overflow error which means that the memory can't contain the binary code as there is only 8 bits when 9 are needed
ASCII (American Standard Code for Information Interchange) is the most common format for text files in computers and on the internet. In an ASCII file, each alphabetic, numeric, or special character is represented
Media represented in binary
How are images represented in binary? Well firstly, one bit would just be two colours as there are only 1 or 0. How ever, if we had a nibble, we could output 16 different colours.
The more bits there are to represent the image, the more colour design pth there is. This means that there are more colours that can be represented. Also, resolution means how many pixels there are to output the image. The lower the resolution is, the less pixels there are.
A picture can also contain more data called metadata! This is data about data (confusing). This means that it is data talking about what camera is was taken with or where it was taken etc.
Sound can also be shown in binary by using bits. This means that each combination or binary sequence means a different note and beat.
Instructions in data
When you have a 8-bit binary code,the first four bits is the operator- the piece of binary that instructs what is to happen to the operand. The last four bits are the position of the data that is to be affected.