Binary Number System: According to digital electronics and mathematics, a binary number is defined as a number that is expressed in the binary system or base 2 numeral system. It describes numeric values by two separate symbols; basically 1 (one) and 0 (zero). The base-2 system is the positional notation with 2 as a radix. The binary system is applied internally by almost all latest computers and computer-based devices because of its direct implementation in electronic circuits using logic gates. Every digit is referred to as a bit.
Binary Number System Table
Some of the binary notations of decimal numbers are mentioned in the below list.
Decimal number | Binary value |
---|---|
1 | 1 |
2 | 10 |
3 | 11 |
4 | 100 |
5 | 101 |
6 | 110 |
7 | 111 |
8 | 1000 |
9 | 1001 |
10 | 1010 |
What is Bit in Binary Number?
A single binary digit is called a “Bit”. The binary number below has 6 bits.
110110 |
Binary numbers chart with decimal values is organized in the below column. To understand binary math, you should know how the number system works. Let’s start with the decimal system since it is easier to deal with.
Decimal to Binary Number Conversion
For example, the number to be operated is 1235.
Thousands | Hundreds | Tens | Ones |
1 | 2 | 3 | 5 |
This indicates,
1235 = 1 × 1000 + 2 × 100 + 3 × 10 + 5 × 1
Given,
1000 | = 10^{3} = 10 × 10 × 10 |
100 | = 10^{2} = 10 × 10 |
10 | = 10^{1} = 10 |
1 | = 10^{0} (any value to the exponent zero is one) |
The above table can be described as,
Thousands | Hundreds | Tens | Ones |
10^{3} | 10^{2} | 10^{1} | 10^{0} |
1 | 2 | 3 | 5 |
Hence,
1235 = 1 × 1000 + 2 × 100 + 3 × 10 + 5 × 1
= 1 × 10^{3} + 2 × 10^{2} + 3 × 10^{1} + 5 × 10^{0}
The decimal number system operates in base 10 wherein the digits 0-9 represent numbers. In binary system operates in base 2 and the digits 0-1 represent numbers and the base is known as radix. Put differently, the above table can also be shown in the following manner.
Thousands | Hundreds | Tens | Ones | |
Decimal | 10^{3} | 10^{2} | 10^{1} | 10^{0} |
Binary | 2^{3} | 2^{2} | 2^{1} | 2^{0} |
We place the digits in columns 10^{0}, 10^{1} and so on in base 10. When there is a need to put a value higher than 9 in the form of 10^{(n+1)} for instance, to add 10 to column 10^{0}, you need to add 1 to the column 10^{1}.
We place the digits in columns 2^{0}, 2^{1} and so on in base 2. To place a value that is higher than 1 in 2^{n}, you need to add 2^{(n+1)}. For instance, to add 3 to column 2^{0}, you need to add 1 to column 2^{1}.
Binary Arithmetic Operations
Like we perform the arithmetic operations in numerals, in the same way, we can perform addition, subtraction, multiplication and division operations on Binary numbers. Let us learn them one by one.
Binary Addition
Adding two binary numbers will give us a binary number itself. This is the simplest method. Addition of two single-digit binary number is given in the table below.
Binary Numbers | Addition | |
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0; Carry →1 |
Let us take an example of two binary numbers and add them.
For example: Add 1101_{2} and 1001_{2}.
Solution:
Binary Subtraction
Subtracting two binary numbers will give us a binary number itself. This is also an easy method. Subtraction of two single-digit binary number is given in the table below.
Binary Numbers | Subtraction | |
0 | 0 | 0 |
0 | 1 | 1; Borrow 1 |
1 | 0 | 1 |
1 | 1 | 0 |
Let us take an example of two binary numbers and subtract them.
Example: Subtract 1101_{2} and 1010_{2}.
Solution:
Binary Multiplication
The multiplication process is the same for the binary numbers as it is for numerals. Let us understand it with example.
Example: Multiply 1101_{2} and 1010_{2}.
Solution:
Binary Division
Binary division is similar to the decimal number division method. We will learn with an example here.
Example: Divide 1010_{2} by 10_{2}
Solution:
Learn more about binary division here.
Position in Binary Number System
In the Binary system, we have ones, twos, fours etc…
For example 1011.110
It is shown like this:
1 × 8 + 0 × 4 + 1 × 2 + 1 + 1 × ½ + 1 × ¼ + 0 × 1⁄8
= 11.75 in Decimal
To show the values greater than or less than one, the numbers can be placed to the left or right of the point.
For 10.1, 10 is a whole number on the left side of the decimal and as we move more left, the number place gets bigger (Twice).
The first digit on the right is always Halves ½ and as we move more right, the number gets smaller (half as big).
In the example given above:
- “10” shows ‘2’ in decimal.
- “.1” shows ‘half’.
- So, “10.1” in binary is 2.5 in decimal.
Uses of Binary Number System
Binary numbers are commonly used in computer applications. All the coding and languages in computers such as C, C++, Java. etc. uses binary digits 0 and 1 to write a program or encode any digital data. Basically, the computer understands only coded language. Therefore these 2-digit number system is used to represent a set of data or information in discrete bits of information.
Binary Number System Examples
Let us practice some of the problems for better understanding:
Question 1: What is binary number 1.1 in decimal?
Solution:
Step 1: 1 on the left-hand side is on the one’s position, so it’s 1.
Step 2: The one on the right-hand side is in halves, so it’s
1 × ½
Step 3: so, 1.1 = 1.5 in decimal.
Question 2: Write 10.11_{2} in Decimal?
Solution:
10.11 = 1 x (2)^{1} + 0 (2)^{0} + 1 (½)^{1} + 1(½)^{2}
= 2 + 0 + ½ + ½
= 2.75
So, 10.11 is 2.75 in Decimal.
Keep visiting BYJU’S to explore and learn more such math-related topics in a fun and engaging way.