Книги автора: Advanced PIC Microcontroller Projects in C
Книга: 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
Похожие страницы
- 1.5 Number Systems
- 1.6 Converting Binary Numbers into Decimal
- 1.7 Converting Decimal Numbers into Binary
- 1.8 Converting Binary Numbers into Hexadecimal
- 1.9 Converting Hexadecimal Numbers into Binary
- 1.10 Converting Hexadecimal Numbers into Decimal
- 1.11 Converting Decimal Numbers into Hexadecimal
- 1.12 Converting Octal Numbers into Decimal
- 1.13 Converting Decimal Numbers into Octal
- 1.14 Converting Octal Numbers into Binary
- 1.15 Converting Binary Numbers into Octal
- 1.16 Negative Numbers