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

1.5.3 Octal Number System

1.5.3 Octal Number System

In the octal number system, the valid numbers are 0, 1, 2, 3, 4, 5, 6, 7. A subscript 8 indicates that a number is in octal format. For example, the octal number 23 appears as 238.

In general, an octal number is represented as:

an ? 8n + an–1 ? 8n–1 + an–2 ? 8n–2 + ……… + a0 ? 80

For example, octal number 2378 can be shown as:

2378 = 2 ? 82 + 3 ? 81 + 7 ? 80

Similarly, octal number 17778 can be shown as:

17778 = 1 ? 83 + 7 ? 82 + 7 ? 81 + 7 ? 80

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


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