Number systems

  • Binary: Known as Base2
    - Digits: 0 & 1
  • Decimal: Known as Base10
    - Digits: 0-9
  • Octal: Known as Base 8
    - Digits: 0-7
  • Hexadecimal: Known as Base16,
    • Uses both numbers and characters.
    • Digits: 0-9 | A-F
      • 10=A
      • 11=B
      • 12=C
      • 13=D
      • 14=E
      • 15=F
  • Binary Coded Decimal (BCD): Notes will be made later.

Positional notation

When we write decimal (Base10) numbers, positional notation is used. Each digit is multiplied by an appropriate number of 10 depending on its position in the number.

Number SystemExamplePositional ExpansionBase-10 Conversion
Base 1017₁₀1 × 10¹ + 7 × 10⁰10 + 7 = 17₁₀
Base 101216₁₀1 × 10³ + 2 × 10² + 1 × 10¹ + 6 × 10⁰1000 + 200 + 10 + 6 = 1216₁₀
Binary1011₂1 × 2³ + 0 × 2² + 1 × 2¹ + 1 × 2⁰8 + 0 + 2 + 1 = 11₁₀
Octal731₈7 × 8² + 3 × 8¹ + 1 × 8⁰448 + 24 + 1 = 473₁₀
HexadecimalAD14₁₆10 × 16³ + 13 × 16² + 1 × 16¹ + 4 × 16⁰40960 + 3328 + 16 + 4 = 44308₁₀
DigitPositional Value
11 × 2²
00 × 2¹
11 × 2⁰
.Binary point
00 × 2⁻¹
11 × 2⁻²
11 × 2⁻³

Place-Value, Binary

DecimalBinary
Ones, tens, hundredths, etc.Ones, twos, fours, eighths, etc.
Weight6432168421
Value1101011
8421Digit
00011
00102
00113
01004
01015
01206
01117
10008

Binary Coded Decimal (BCD)

BCD splits the digits of a decimal into 4-bit binaries.

DecimalBCD
23.12₁₀00100011.00010010₂
79.92₁₀01111001.10010010₂

Octal → Binary

Octal digitBinary
3011
5101
7111
Therefore: 357₈011101111₂

Number-System Conversion

Number SystemRepresentation
Decimal239₁₀
Octal357₈
HexadecimalEF₁₆
Binary11101111₂
BCD001000111001