fundamentals of binary part 2

Fundamentals of Binary You Need to Know - Part 2

How binary is used for data representation and how to convert it to hex, ascii and unicode 

In the previous guide we learnt that binary is a base 2 system and how the idea of it even came about. But have you ever looked at your computer screen and wondered, how does binary even let us type out words or play videos? I know I have.

Here are some good news, I have an explanation for this question. We know that computers think in binary so it is useful for us to understand what goes on behind the scenes when we input something into the computer. Which is why in this guide, we will explore how basic mathematical functions are carried out in binary, how to shorten binary code using hexadecimal, how our screens are able to display different colors, as well as binary conversion to ASCII and Unicode.

Addition & Subtraction In Binary

Here is a problem someone might face when looking at addition in binary for the first time. Since binary only has the numbers 1 and 0, what do we do when we add 1 with another 1. We can't write 2 right? Also, how do we subtract in binary if we can't have a negative sign? In this video, we will explain how these problems are solved.


Multiplication & Hexadecimal

After addition and subtraction, we need to know how to carry out multiplications in binary. It is actually pretty straightforward once you know how it is carried out. But other than mathematical functions, we have an issue with the length of binary code.

While the long strings of 1s and 0s carry crucial information, it takes up a lot of space. Using hexadecimal however, we can shorten the number of bits used by four times! This saves up a lot of space and this video explains how this conversion works.


Colors, Images & Videos

Have you ever wondered, how does a video play on the screen? We have all probably guessed by now that there are numerous tiny LEDs that allow different colors to appear on the screen but how do these LEDs show all these different colors?

Images are quite confusing as well. When we ask a computer to store images, there are no words or numbers on the image so how does it even convert it into binary? All these questions are answered in this video. But wait a second, how does this video get stored in terms of binary if it is not just a still image? Don't worry, we will answer that as well.


ASCII & Unicode

The world has a total of approximately 6500 spoken languages as of today but so far we have only explored binary representation for numbers. No one communicates in just numbers, we need to have binary representation for the different characters in different languages. Also, how can we forget the most widely spoken language? That's right, I am talking about good old emojis. These can also be represented by binary, the only question remaining is how? The answers to this lies in this video.


Quiz Time

Now that we know about binary conversion, as well as how it is used in representing numbers, words, images and videos let's do a little quiz to see if you've mastered the art of binary. Feel free to challenge someone else to see who does better!