Number System Operations
Number System Operations
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.
Solution:
4 in binary is (100)2.
Here, 4 is represented in the decimal number system, where we can represent the
number using the digits from 0-9. However, in a binary number system, we use only two
digits, such as 0 and 1.
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
2/2 = 1
1/2 = 0
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.
Given,
1000 = 103 = 10 × 10 × 10
100 = 102 = 10 × 10
10 = 101 = 10
1 = 100 (any value to the exponent zero is one)
The above table can be described as,
Hence,
We place the digits in columns 20, 21 and so on in base 2. To place a value that is higher
than 1 in 2n, you need to add 2(n+1). For instance, to add 3 to column 20, you need to
add 1 to column 21.
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.
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.
Binary Multiplication
The multiplication process is the same for the binary numbers as it is for numerals. Let
us understand it with example.
Binary Division
Solution:
1×½
Solution:
=2+0+½+½
= 2.75
Keep visiting BYJU’S to explore and learn more such Math-related topics in a fun and
engaging way.
Summary:
Addition
Multiplication
courtesy: @BnDizzy101