A numeral system (or system of numeration) is a writing system for expressing numbers; that is, a mathematical notation for representing numbers of a given set, using digits or other symbols in a consistent manner. It can be seen as the context that allows the symbols "11" to be interpreted as the binary symbol for three, the decimal symbol for eleven, or a symbol for other numbers in different bases.
2. POPULAR NUMBER SYSTEMS IN CONNECTION WITH
DIGITAL COMPUTERS ARE:
DECIMAL SYSTEM.
BINARY SYSTEM.
OCTAL SYSTEM.
HEXADECIMAL SYSTEM.
3. THE DEGITS AND BASE AMONG THE NUMBER SYSTEMS ARE:
DECIMAL SYSTEM
DIGITS=1,2,3,4,5,6,7,8, 9 and 0.(total 10 digits)
BASE=10 (since total number of digits is 10)
BINARY SYSTEM
DIGITS= 0 and 1 (total 2 bits)
BASE= 2(since total number of digits is 2)
OCTAL SYSTEM
DIGITS=0,1,2,3,4,5,6 and 7 (total 8 digits)
BASE=8 (since total number of digits is 8)
HEXADECIMAL SYSTEM
DIGITS=0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F (total 16 digits)
BASE=16(since the total number of digits is 16)
5. Binary to Decimal
Technique:
Multiply each bit by 2n
, where n is the
“weight” of the bit
The weight is the position of the bit, starting
from 0 on the right
Add the results
6. Example
1010112 => 1 x 20
= 1
1 x 21
= 2
0 x 22
= 0
1 x 23
= 8
0 x 24
= 0
1 x 25
= 32
4310
Bit “0”
7. Decimal to
Binary
Technique:
Divide by two, keep track of the remainder
First remainder is bit 0 (LSB, least-significant
bit)
Second remainder is bit 1
Etc.
9. Octal to Decimal
Technique:
Multiply each bit by 8n
, where n is the
“weight” of the bit
The weight is the position of the bit, starting
from 0 on the right
Add the results
15. Hexadecimal to Decimal
Technique:
Multiply each bit by 16n
, where n is the
“weight” of the bit
The weight is the position of the bit, starting
from 0 on the right
Add the results
16. Example
ABC16 => C x 160
= 12 x 1 = 12
B x 161
= 11 x 16 = 176
A x 162
= 10 x 256 = 2560
274810
31. Common Powers (1 of 2)
Base 10
10-12
pico p .000000000001
10-9
nano n .000000001
10-6
micro µ .000001
10-3 milli m .001
103
kilo k 1000
106
mega M 1000000
109 giga G 1000000000
1012
tera T 1000000000000
Power Preface Symbol
Value
32. Common Powers (2 of 2)
Base 2
Power Preface Symbol Value
210 kilo k 1024
220
mega M 1048576
230
Giga G 1073741824
What is the value of “k”, “M”, and “G”?
In computing, particularly w.r.t. memory,
the base-2 interpretation generally applies
33. In the lab…
1. Double click on My Computer
2. Right click on C:
3. Click on Properties
Example
/ 230
=
34. Review – multiplying powers
For common bases, add powers
ab
× ac
= ab+c
26
× 210
= 216
= 65,536
or…
26
× 210
= 64 × 210
= 64k
35. Binary Addition (1 of 2)
Two 1-bit values
A B A + B
0 0 0
0 1 1
1 0 1
1 1 10
“two”