Definition: Binary is a base-2 numeral system using only two digits, 0 and 1.
History/origin: Used in digital electronics and computing as it represents two states (off/on).
Current use: Fundamental to computer systems, data representation, and digital communication.
Definition: Hexadecimal is a base-16 numeral system using digits 0-9 and letters A-F.
History/origin: Used widely in computing and digital electronics as a compact representation of binary data.
Current use: Common in programming, memory addressing, and color codes in web design.
| Binary | Hexadecimal |
|---|---|
| 0000 | 0 |
| 0001 | 1 |
| 0010 | 2 |
| 0100 | 4 |
| 0110 | 6 |
| 1000 | 8 |
| 1010 | A |
| 1100 | C |
| 1111 | F |
| 11111111 | FF |
Formula: Hexadecimal = Binary converted to decimal, then decimal to base-16 string
Example: convert binary 11111111 to hexadecimal:
11111111 (binary) = 255 (decimal)
255 in hexadecimal = FF