Count
writing.
Writing needs some form of language.
expressing information.
Number Systems in
General
Decimal (base 10)
What us humans are experienced in using
Based on powers of 10 (weve got 10 fingers)
Binary (base 2)
What the computers need
Based on powers of 2
The computer has 2 fingers; on and off
This is called a bit for a binary digit
Octal (Base 8)
Another variation of making life easier
Not used much anymore
Variations on a theme
BCD, ASCII, etc.
101010
Binary:
1 x 23=8
0 x 22=0
1 x 2=2
0 x 1=0
1010 2
1 0 1 0 0 1 0 12
00002 =010
00012 =110
00102 =210
00112 =310
01002 =410
01012 =510
01102 =610
01112 =710
10002 =810
We can note a
couple of
interesting things:
First: Each bit
alternates equally
between 1 and 0
based upon its
position.
Second: Each
power of 2 number
is represented by
one unique bit.
1 0 1 0 0 1 1 02
27 26 25 24 23 22 21 20
128 + 0 + 32 + 0 + 0 + 4 + 2 + 0
= 16610
1410
2
remainder: 0
remainder: 1
remainder: 1
remainder: 1
2310
2
remainder: 1
remainder: 0
remainder: 1
remainder: 1
Here's an illustration
of converting 141 to
binary:
number of bits
The first CPU (the 4004) used 4 bits.
The next major group of CPUs (the 8000, 8008, 6800,
etc.) used 8 bits.
The next major group of CPUs (the 8086, 80186, 68000,
etc.) used 16 bits.
The current generation of CPUs (the Pentiums, the
68020, etc.) use either 32 bits or 32/64 bits.
The most powerful CPUs (the Intel Itanium and AMD
64) use a full 64 bits.
Some large computers use 128 or 256 bits.
9 times bigger!
36 times bigger!