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

1.14 Converting Octal Numbers into Binary

1.14 Converting Octal Numbers into Binary

To convert an octal number into binary, write the 3-bit binary equivalent of each octal digit.

Example 1.19

Convert octal number 1778 into binary.

Solution 1.19

Write the binary equivalent of each octal digit:

1 = 0012 7 = 1112 7 = 1112

The binary number is 0011111112.

Example 1.20

Convert octal number 758 into binary.

Solution 1.20

Write the binary equivalent of each octal digit:

7 = 1112 5 = 1012

The binary number is 1111012.

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


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