Skip to content

Instantly share code, notes, and snippets.

Binary, Bits, Bytes, and Hexadecimal: A Beginner's Guide

1. Binary (Base-2)

Binary is a number system that uses only two digits: 0 and 1. Each digit is called a "bit" (binary digit).

Examples:

0 in binary = 0
1 in binary = 1
2 in binary = 10