Книга: Advanced PIC Microcontroller Projects in C
1.5.4 Hexadecimal Number System
1.5.4 Hexadecimal Number System
In the hexadecimal number system, the valid numbers are: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. A subscript 16 or subscript H indicates that a number is in hexadecimal format. For example, hexadecimal number 1F can be written as 1F16 or as 1FH. In general, a hexadecimal number is represented as:
an ? 16n + an–1 ? 16n–1 + an–2 ? 16n–2 + ……… + a0 ? 160
For example, hexadecimal number 2AC16 can be shown as:
2AC16 = 2 ? 162 + 10 ? 161 + 12 ? 160
Similarly, hexadecimal number 3FFE16 can be shown as:
3FFE16 = 3 ? 163 + 15 ? 162 + 15 ? 161 + 14 ? 160
Похожие страницы
- Hexadecimal, or ‘hex’ to its friends
- 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