Understanding Binary Conversion
You‘ve probably heard that computers deal with 0s and 1s, right? Computers store and process everything – any kind of data, be it text, numbers, images, or sounds – using only 0s and 1s. Do you ever get curious about how these simple digits turn back into the letters and numbers we see?
Let‘s break it down in some simple concepts:.
Binary Conversion of Numbers
When you enter the number 10 on your computer, it is converted into binary as 1010. How does this work? It’s plain math:
10 in binary: The number system in computers is base-2 (binary), not base-10 (decimal) like we use. Each digit in binary is a power of 2. So, 1010 means:
Binary Conversion of Letters (ASCII)
When it comes to letters, the computer uses something called ASCII or American Standard Code for Information Interchange. Again, each character is equivalent to a numeric value. For instance:
A is represented as 65 in ASCII.
65 translates to 1000001 in binary.
B is 66 and, in binary, it is 1000010.
When you hit keys in on a keyboard, the computer converts each one to its ASCII value and then to binary. In the display, it does the reverse: the binary data convert back to characters, using this table.
Sounds and Music (Audio)
So when you‘re playing the music on your computer, it‘s also stored as 0s and 1s. Sound is actually a wave, so these waves are sampled at regular intervals and converted into binary data. Your computer converts this binary data back into sound waves when you play the audio.
Movies and Videos
Videos are really composed of a number of frames, and every single frame is essentially an image. Colors, movement, and even audio in videos are all represented in binary. When you view a movie, the computer reads the binary data, processes it, and then projects the frames one after the other to produce motion.
Images and Colors (Pixels)
Tiny dots forming images on your screen are called pixels, and each one has a color, which represents the value of R (Red), G (Green), and B (Blue). These colors correspond to the binary data: For instance, the color white might be represented as 255, 255, 255, and in the form of binary, the three components are all 11111111.
Conclusion :
All that you see on a computer and hear on a computer is stored as binary data. The computer uses different systems, such as ASCII for the text and RGB values for images, to convert data into 0s and 1s. As you interact with your computer, it continuously translates between binary and the human-readable forms of text, images, and sounds. Click Here to Watch the video How computers turn 1s and 0s (binary) into video, audio and text