Книга: 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

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


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