Binary and Number Systems
A High School and Early College Primer on Base 2, Base 10, Base 16, and How Computers Count
Binary makes no sense — until it does. If you're staring down a computer science class, a discrete math exam, or a programming course that suddenly expects you to know what `0b1011` means, this guide gets you up to speed fast.
**TLDR: Binary and Number Systems** covers everything a high school or early college student needs to work confidently with base 2, base 10, and base 16. You'll learn how positional notation actually works (and why base 10 is just one option among many), how to convert fluently between binary, decimal, and hexadecimal, and how to do binary addition and subtraction by hand. The guide also explains bitwise operators — AND, OR, XOR, shifts — that show up constantly in programming courses, then tackles the part most textbooks gloss over: how computers represent negative numbers using two's complement, and what overflow means when results don't fit.
The final section connects all of it to the real world: memory sizes, hex color codes, ASCII and Unicode, and IP addresses. If you've ever wondered why a byte holds values 0–255, or why #FF5733 is a shade of orange, this is where it clicks.
This is a targeted primer for students who need a solid conceptual foundation — not a 400-page textbook. A computer science fundamentals course or intro programming class will make a lot more sense after 90 minutes with this guide.
Pick it up, read it once, and walk into class ready.
- Explain what a positional number system is and how the base determines place values.
- Convert numbers fluently between binary, decimal, and hexadecimal.
- Perform binary addition, subtraction, and bitwise operations by hand.
- Represent negative integers using two's complement and understand overflow.
- Connect bits and bytes to real computing concepts like memory, color codes, and text encoding.
- 1. What Is a Number System?Introduces positional notation, the role of the base, and why base 10 is just one choice among many.
- 2. Binary: Counting with Just 0 and 1Explains base 2, how to read binary numbers, why computers use it, and the vocabulary of bits and bytes.
- 3. Converting Between BasesWalks through decimal-to-binary, binary-to-decimal, and introduces hexadecimal as a shorthand for binary.
- 4. Binary Arithmetic and Bitwise OperationsCovers binary addition, subtraction, and the bitwise operators AND, OR, XOR, NOT, and shifts.
- 5. Representing Negative Numbers and OverflowExplains signed magnitude, one's complement, and two's complement, plus what happens when results don't fit.
- 6. Why It Matters: Bits in the Real WorldConnects number systems to memory sizes, hex color codes, ASCII/Unicode, IP addresses, and what to study next.