Binary numbers : 2진수
1. Decimal(10진수) vs Binary(2진수)
We use the decimal number system, or simply put, we have 10 digits like 0,1,2,3,4,5,6,7,8,9.
look at a number : 4251
So when we read this number, we just look at each digit starting from the last and multiply each digit by its corresponding power of 10.
In the binary number system, we do exactly the same, except the base is 2, not 10.
For example, 1011.
2. Binary counting
-> So, binary counting goes like this: when a digit reaches 1, the next number resets this digit to 0 and causes the digit to the left to raise.
3. Zero padding
You can add insignificant zeros to any binary number on the left side, for example: 11 → 0011, 101 → 0101. This operation does not change the number but allows you to format them.
- triads : 000,001,010, and so on
- tetrads : 0110,0111, and so on
- 8-digit numbers : 00000000, 01010101, and so on.
4. Why & where
Almost all modern digital devices use the binary number system. The reason for this lies in the hardware. As technology advanced, the computers started using transistors, which could be used to represent two states and quickly change from one to the other.
It is conventional to group information in 8-digit binary numbers, where each 8-digit number is referred to as a byte.
참고
https://hyperskill.org/learn/step/5544