[prev] 8 [next]

Sidetrack: Numeral Systems (cont)

Binary representation
  • The base is 2; digits 0 and 1
  • Example: binary number 1101 can be interpreted as
    1·23 + 1·22 + 0·21 + 1·20
  • Place values:
    8421
    23222120
  • Write number as 0b1101   (= 13)