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

1.15 Converting Binary Numbers into Octal

1.15 Converting Binary Numbers into Octal

To convert a binary number into octal, arrange the number in groups of three and write the octal equivalent of each digit.

Example 1.21

Convert binary number 1101110012 into octal.

Solution 1.21

Arranging in groups of three:

110111001 = 110 111 001
             6   7   1

The octal number is 6718.

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


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