Книга: Advanced PIC Microcontroller Projects in C

1.20 Division of Binary Numbers

1.20 Division of Binary Numbers

Division with binary numbers is similar to division with decimal numbers. An example follows.

Example 1.29

Divide binary number 1110 into binary number 10.

Solution 1.29

Dividing the numbers:

   111
10|???
   1110
   10
   ----
    11
    10
   ----
     10
     10
   ----
     00

gives the result 1112.

Оглавление книги


Генерация: 0.573. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз