Книги автора: Advanced PIC Microcontroller Projects in C
Книга: Advanced PIC Microcontroller Projects in C
1.5.1 Decimal Number System
1.5.1 Decimal Number System
The numbers in the decimal number system, of course, are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. The subscript 10 indicates that a number is in decimal format. For example, the decimal number 235 is shown as 23510.
In general, a decimal number is represented as follows:
an ? 10n + an–1 ? 10n–1 + an-2 ? 10n-2 + ……… + a0 ? 100
For example, decimal number 82510 can be shown as:
82510 = 8 ? 102 + 2 ? 101 + 5 ? 100
Similarly, decimal number 2610 can be shown as:
2610 = 2 ? 101 + 6 ? 100
or
335910 = 3 ? 103 + 3 ? 102 + 5 ? 101 + 9 ? 100
Похожие страницы
- 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