Showing posts with label Binary Arithmetic. Show all posts
Showing posts with label Binary Arithmetic. Show all posts

Binary Numbers Division Solved Examples


This is my fourth article on binary arithmetic. In this article I am going to solve some examples on binary numbers division. Here are articles on binary numbers addition,binary numbers subtraction and binary numbers multiplication.

Key Questions:
How to perform division on binary numbers?
How to perform division on fractional binary numbers?

Binary Numbers Division Examples:

The division of binary numbers and the rules we follow are exactly the same as we learnt in primary classes. It's may be a little bit difficult from multiplication. Once you understand it will not difficult for you.
I discussed every possible case. The first case in which both dividend and divisor both are integers. The second case in which dividend has a fractional part while divisor is an integer. The third case in which dividend and divisor both have fractional part. In third case it is better to shift the binary point to make the problem easy.

Example#01: 11001110)2÷11)2
       1000100.101
11 11001110
        11
        XX0011
                11
                XX100
                    11
                    0100
                       11
                       01

Answer:1000100.101)2


Example#02:10100101)2÷101)2
         100001
10110100101
         101
        XXX00101
                   101
                    XXX

Answer: 100001)2


Example#03:11100.111)2÷100)2
     111.01
10011100.111
         100
         0110
           100
            0100
              100
             XXX111
                    100
                     011
                 
Answer:111.01)2    


Example#04:1111.1111)2÷1.01)2

By shifting the binary point of numerator and denominator makes the problem simple. According to mathematical rule if you shift binary point of numerator/dividend upto two places you have to shift the binary point of denominator/divisor upto two places as well. Let's try it!!

1111.1111 ÷ 1.01
Dividend                   Divisor
After shifting binary point upto two places the problem becomes

111111.11 ÷ 101
Dividend.                  Divisor

     1100.11
101111111.11
         101
         0101
           101
            XX111
                 101
                   101
                   101
                     XX
Answer:1100.11)2


  

Binary Numbers Multiplication

Binary Multiplication Examples
This is my third article on binary arithmetic.  In this post I am going to solve some examples on binary numbers multiplication. Here are articles on binary numbers addition and binary numbers subtraction.

Key Questions:
  • How to perform multiplication on binary numbers?
  • How to perform multiplication on fractional binary numbers?
  • How to multiply two binary numbers?

Binary Multiplication Rules:


A*B
Answer
0*0
0
0*1
0
1*0
0
1*1
1

Binary Multiplication Examples:

Multiplication of binary numbers and the rules of multiplication are exactly the same as we did in primary classes. I hope you don't find anything difficult and complicated. It is easy and straightforward task. Let's get started.

Example#01:1111)2*10)2

A = 1111)2
B = 10)2


A

1
1
1
1
B


*
1
0


0
0
0
0

1
1
1
1
X
Result
1
1
1
1
0

Answer: 11110)2


Example#02:11100)2*1100)2

A = 11100)2
B = 1100)2

A




1
1
1
0
0
B




*
1
1
0
0






0
0
0
0





0
0
0
0
X



1
1
1
0
0
X
X


1
1
1
0
0
X
X
X
Result
1
0
1
0
1
0
0
0
0

Answer: 101010000)2


Example#03:10011.11)2*111.11)2


A




1
0
0
1
1
.
1
1
B





*
1
1
1
.
1
1






1
0
0
1
1
1
1





1
0
0
1
1
1
1
X




1
0
0
1
1
1
1
X
X



1
0
0
1
1
1
1
X
X
X


1
0
0
1
1
1
1
X
X
X
X
Result
1
0
0
1
1
0
0
1
0
0
0
1

Answer: 10011001.0001)2





 

Popular Posts