All courses › Embedded Systems and Instrumentation › Number Systems
Number Systems
Computers compute internally with binary numbers (base 2), but hexadecimal numbers (base 16) are often used as a compact shorthand for binary, since two hex digits always make exactly one byte. A digit at position has weight , where is the base.
positional system: each digit d_k is weighted by b^k
Symbols
| base (2, 16 or 10) | ||
| digit at position k |
Example
in decimal:
.
Two hex digits are always exactly one byte – handy for reading memory addresses and color codes.
Practise number systems and digital logic for free →
Part of Embedded Systems and Instrumentation: Number systems and digital logic.