Use of binary numbers in computer
Everything that is processed and stored inside a computer (all data, information, instructions, files, images, etc.) is in the form of numbers. More specifically, these are binary numbers (0 or 1).
A computer understands only the binary numbers. The reason for the use of binary numbers is that the electronic devices in a computer (the CPU, the RAM, etc.) have parts that can only be turned 'ON' or 'OFF' representing '1' or '0'.
The binary number system, also called as base-2 number system, is a numbering system that represents numeric values using two unique digits, 0 and 1.
Since the base of the binary number system is 2, each position of the binary number represents a successive power of 2. From right to left, the successive positions of the binary number are weighted 1, 2, 4, 8, 16, 32, etc. A list of the first several powers of 2 are: 20 = 1, 21 = 2, 22 = 4, 23 = 8, 24 = 16, 25 = 32, etc.
The following table shows the decimal numbers 0 to 15 with their binary equivalents. Adjacent to it is a binary clock using them.