8
Sidetrack: Numeral Systems
(cont)
Binary representation
The
base
is 2; digits 0 and 1
Example: binary number 1101 can be interpreted as
1·2
3
+ 1·2
2
+ 0·2
1
+ 1·2
0
Place values:
…
8
4
2
1
…
2
3
2
2
2
1
2
0
Write number as
0b
1101
(= 13)