English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

How can I do maultiplication and dividing in binary system?

example: 100101010001*1000110011011101=?
100100110010/1010101101110101=?
How can I do ( please show the details)

2007-09-25 09:51:41 · 1 answers · asked by maczenko89 1 in Science & Mathematics Mathematics

1 answers

Binary multiplication can be done much like base 10 multiplication... I'll show you a simpler example and you can extrapolate:

Let's say you want to multiply 5 x 3 (101 * 11):

.. 1 0 1
.. x 1 1
.. -------
.. 1 0 1
1 0 1
----------
1 1 1 1

Another example of 11 x 5 (1011 x 101)
..... 1 0 1 1
...... x 1 0 1
---------------
...... 1 0 1 1
... 0 0 0 0
.1 0 1 1
----------------
.1 1 0 1 1 1 (notice the carry when you add 1+0+1)

Division can be done just like long division, but in your case you have a larger denominator than numerator which means you are getting into fractional and decimal representations.

Let's try a different example, like 15 / 5 (1111 / 101)

..............11
........---------
101 ) 1111
......... 101
----------------
............101
............101
-----------------
.................0

2007-09-26 05:24:57 · answer #1 · answered by Puzzling 7 · 0 0

fedest.com, questions and answers