Introduction to Binary Numbers
In the decimal number system we use the digits 0, 1, … 9 to write any number. In binary (bi means two) number system we use the first two digits only: 1 and 0. In exactly the same way that you operate on decimal numbers, you can add, subtract, multiply, divide… binary numbers as well. Why do we want to operate on numbers written in binary form rather than in decimal form?
At first it might seem that using only two digits will not have any practical use. However knowing that one of the most fundamental components in electronics is the switch which, at any time, can be in one of two states that may be called “1” for “ON” and “0” for “OFF”, we start to see the advantage of using binary numbers in electronic calculators and computers.
In expanded form, the decimal number 253 is written as follows:
We can use a base-2 system (use only 0 and 1) to write 253 as follows:
We can say that 253 in binary form is written as follows: 1 1 1 1 1 1 0 1
You may use an Online Converter From Decimal to Binary, Octal and Hexadecimal to check any conversion results.
Addition of Binary Numbers
The rules for adding binary numbers are similar to those used to add decimal numbers:
We can easily check the corresponding addition in decimal system. The binary 1101 converted to decimal gives 13 and 1111 converted to decimal gives 15 and 13 + 15 = 28 which in binary form is written as 11100 which exactly the result given above when done using binary from.
The most important thing to retain is that we can add binary numbers in the same way we add decimal numbers. It is also true for the subtraction, multiplication and division of numbers. The main advantage of using binary numbers is that you need only two digits 0 and 1 to add, subtract, multiply and divide numbers which leads to easier design of digital calculators such as computers.