Created & Designed for Students by
๐จโ๐ซ Sandeep Choudhary (Computer Science Teacher)
A Number System is simply a way to represent numbers. Humans count using 10 fingers, so we use a Base-10 system. Computers work with electricity (On/Off), so they use a Base-2 system. Here is a simple breakdown:
๐ฅ๏ธ Binary (Base 2)
- Allowed Digits: Only
0 and 1.
- Who uses it? Computers, smartphones, and digital circuits.
- Concept: Think of it as a light switch. 1 means "ON" (electricity is flowing) and 0 means "OFF" (no electricity).
๐ Octal (Base 8)
- Allowed Digits:
0 to 7 (No 8 or 9 allowed!).
- Who uses it? Older computer systems and Linux file permissions (e.g., chmod 777).
- Concept: It was created because grouping 3 binary digits (like 111) equals exactly 7, making it a good shorthand for binary!
๐๏ธ Decimal (Base 10)
- Allowed Digits:
0 to 9.
- Who uses it? Us! Humans use this for money, math, and everyday counting.
- Concept: "Deci" means 10. We likely invented this because we have 10 fingers to count on.
๐จ Hexadecimal (Base 16)
- Allowed Digits:
0 to 9 and A to F.
- Who uses it? Web designers (color codes like #FFFFFF), memory addresses, and MAC addresses.
- Concept: Since we run out of numbers after 9, we use letters! A=10, B=11, C=12, D=13, E=14, F=15.
๐ก How do Conversions work?
To convert ANY base to Decimal, we multiply each digit by its Base's power (e.g., 2โฐ, 2ยน, 2ยฒ...).
To convert from Decimal to ANY base, we repeatedly divide the decimal number by the target Base and write down the remainders from bottom to top! (Our calculator above shows you the exact math for this in the blue box!)