Binary in Real LIFE

Kani Oskonbaev
2 min readOct 12, 2020

--

I study math for about 20 years and never asked myself how numbers relieve our lives. I was counting everything by my hand till kindergarten and later on realized that was decimal. We have all learned to count using ten digits: 0–9. One probable reason is that we have ten fingers to represent numbers. Numbers and counting are integral parts of our everyday life, especially when we take into account the modern computers. A computer is an electronic machine that uses electricity for data processing and storage. When we upload our data to the device computer does this using a binary coding system.

What is binary?

“Binary (or base-2) a numeric system that only uses two digits — 0 and 1. Computers operate in binary, meaning they store data and perform calculations using only zeros and ones. A single binary digit can only represent True (1) or False (0) in boolean logic. However, multiple binary digits can be used to represent large numbers and perform complex functions. In fact, any integer can be represented in binary.”

Computers operate in binary similarly switching off/on the light. However, that's more complicated than just turning off or on. One binary digit (0 or 1) is referred to as a bit. Thus, one bit can be implemented by one switch.

The collection of 8 bits is one byte.

10011010 represents the decimal integer 154

This chunk of code decodes binary digits into an integer number:

Why computers use binary

The binary system was chosen only because it is quite easy to distinguish the presence of an electric current from an absense of electric current, especially when working with trillions of such connections. And using any other number base in this system ridiculous, because the system would need to constantly convert between them.

--

--