Computer Number Systems - Complete Guide
What is a Number System?
A number system is a way to represent numbers. Computers use binary (0 and 1), but also work with decimal, octal, and
hexadecimal systems for different purposes.
Types of Number Systems
1. Binary (Base-2): Digits used - 0, 1
Example: 1011 (Binary) = 11 (Decimal)
2. Octal (Base-8): Digits used - 0 to 7
Example: 75 (Octal) = 61 (Decimal)
3. Decimal (Base-10): Digits used - 0 to 9
Example: 123 (Decimal)
4. Hexadecimal (Base-16): Digits used - 0-9, A-F
Example: 3F (Hex) = 63 (Decimal)
Conversions Between Systems
- Binary <-> Decimal
- Decimal <-> Binary
- Binary <-> Hexadecimal
- Decimal <-> Hexadecimal
Example: Binary 1011 = Decimal 11
Hex 3F = Decimal 63
Summary Table
System | Base | Digits | Used In
-------------|------|--------------|--------------------------
Binary |2 | 0, 1 | All computer operations
Octal |8 | 0-7 | UNIX/Linux file permissions
Decimal | 10 | 0-9 | Human counting system
Hexadecimal | 16 | 0-9, A-F | Memory addresses, colors