Hex or hexadecimal is a counting system based on 16 characters. This counting system is particularly interesting, because in the decimal system often, there are only 10 digits to represent numbers.
You are watching: Convert base 16 to base 2
16-base system (hexadecimal)
Hex or hexadecimal is a counting system based on 16 characters. This counting system is particularly interesting, because in the decimal system often, there are only 10 digits to represent numbers. Since the hex system has 16 digits, the 6 additional digits (in addition to the 10 digits in the decimal) are denoted by the first 6 letters of the English alphabet. Therefore, the hex digits include 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and A, B, C, D, E, F. This digital system is most commonly used in mathematics and information technology. In HTML programming, the color attribute can be represented by a 6-digit hexadecimal number: FFFFFF represents white, 000000 represents black, etc.
Base 2 system (binary system)
The binary system uses two characters, 0 and 1, to represent a value.
Binary systems were applied in ancient Egypt, China and India for many different purposes. In the modern world, binary has become the language of electronic science and computers. This is the most efficient system for detecting electrical signals: Turn off ( 0 ) and turn on ( 1 ). It is also the basis for the binary code used to compose data on the computer. Even the digital text you are currently reading also includes binary numbers.
Reading some binary is easier than you think. This is a quantitative position-based system, so each digit in a binary number is raised to powers 2, starting from the rightmost position of 2 0 . In base 2 system, each binary digit refers to 1 bit.
How to read binary numbers
To convert binary to decimal, some basic knowledge of how to read binary numbers can help. As mentioned above, in binary counting using quantitative positions, each bit (binary digit) is a power of 2. This means that all binary numbers can be expressed in terms of power of 2, with the rightmost position is 2 0 .
For example, binary numbers (1010) 2 can also be written as follows:
(1 * 2 3 ) + (0 * 2 2 ) + (1 * 2 1 ) + (0 * 2 0 )