Binary Number System by Byju's
Binary Number System by Byju's
In
computer applications, where binary numbers are represented by only two
symbols or digits, i.e. 0 (zero) and 1(one). The binary numbers here are
expressed in the base-2 numeral system. For example, (101)2 is a binary
number. Each digit in this system is said to be a bit. Learn about the number
system here.
Table of Contents:
Definition
Table
How to Calculate Binary Numbers
Positions
Binary Arithmetic Operations
Binary Addition
Binary Subtraction
Binary Multiplication
Binary Divison
Uses
Examples
FAQs
Solution:
4 in binary is (100)2.
Now, let’s discuss how to convert 4 in binary number system. The following
steps help to convert 4 in binary.
Step 1: First, divide the number 4 by 2. Use the integer quotient obtained in
this step as the dividend for the next step. Continue this step, until the
quotient becomes 0.
Dividend Remainder
4/2 = 2 0
2/2 = 1 0
1/2 = 0 1
Step 2: Now, write the remainder in reverse chronological order. (i.e from
bottom to top).
Here, the Least Significant Bit (LSB) is 0 and the Most Significant Bit (MSB) is
1.
So, if we want to find how many bits does 4 in binary have? we have to count
the number of zeros and ones.
So, 4 in binary is 1002. Here, there are 2 zeroes and 1 one. Hence, we have 3
bits.
Therefore, the number of bits does 4 in binary have is 3.
A single binary digit is called a “Bit”. A binary number consists of several bits.
Examples are:
Facts to Remember:
Some of the binary notations of lists of decimal numbers from 1 to 30, are
mentioned in the below list.
1 1 11 1011 21 10101
2 10 12 1100 22 10110
3 11 13 1101 23 10111
1 2 3 5
This indicates,
Given,
1000 = 103 = 10 × 10 × 10
100 = 102 = 10 × 10
10 = 101 = 10
1 2 3 5
Hence,
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, and the
above table can also be shown in the following manner.
Thousands Hundreds Tens Ones
Binary 23 22 21 20
We place the digits in columns 100, 101 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 100, you need to add 1 to the column 101.
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).
Binary Addition
Adding two binary numbers will give us a binary number itself. It is the
simplest method. Addition of two single-digit binary number is given in the
table below.
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.
Solution:
Binary Subtraction
Subtracting two binary numbers will give us a binary number itself. It is also a
straightforward method. Subtraction of two single-digit binary number is given
in the table below.
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.
Binary Multiplication
The multiplication process is the same for the binary numbers as it is for
numerals. Let us understand it with example.
Solution:
Binary Division
The binary division is similar to the decimal number division method. We will
learn with an example here.
Binary numbers are commonly used in computer applications. All the coding
and languages in computers such as C, C++, Java, etc. use binary digits 0
and 1 to write a program or encode any digital data. The computer
understands only the coded language. Therefore these 2-digit number system
is used to represent a set of data or information in discrete bits of information.
Solution:
1×½
Solution:
= 2.75
Keep visiting BYJU’S to explore and learn more such Math-related topics in a
fun and engaging way.
Q1
Q2
What is a bit?
A bit is a single digit in the binary number. For example, 101 is three-bit binary
numbers, where 1, 0 and 1 are the bits.
Q3
To convert a decimal number into its equivalent binary number, we divide the
decimal number by 2 each time, till we get 0 as a dividend. Let us take an
example to convert 1310 into a binary number.
13 ÷ 2: 6 and remainder 1
6 ÷ 2: 3 and remainder 0
3 ÷ 2: 1 and remainder 1
1 ÷ 2: 0 and remainder 1
Now we take the bits from the last remainder to first remainder, i.e.(MSB to
LSB). Hence,
1310 = 11012
Q4
Q5
Q6