Numbering Systems
Decimal Numbering System (Base 10)
Each position of a whole number contains ten possible digits from 0 to 9.
For a four digit decimal number the least significant position (the right
most digit) has weight 100 and the most significant position (left most)
has weight 103 as
Four digit number
103
102
101
100
X 1000
X 100
X 10
X1
Example 1
4623
3 x 100 = 3 x 1 =
3
2 x 101 = 2 x 10 =
20
6 x 102 = 6 x 100 = 600
4 x 103 = 4 x 1000 = 4000 +
4623
Example 2
257310
= 2 x 103 + 5 x 102 + 7 x 101 + 3 x 100
= 2000 + 500 + 70 + 3
= 2573
x
In 10 , x is the power of 10 and is called the weighting factor
Binary Numbering System (Base 2)
Binary system has only two digits 0 or 1. Weighting factors for binary
positions are powers of 2.
8 bit
system
27
X 128
26
X 64
25
X 32
24
X 16
Page 1 of 10
23
22
21
20
X8
X2
2-1
0.5
2-2
0.25
2-3
2-4
0.125
0.0625 0.03125
2-5
Page 2 of 10
87
Decimal
0
1
2
3
4
5
6
7
8
9
10
86
85
84
83
82
81
80
4096
512
64
Binary (Groups of 3)
000
001
010
011
100
101
110
111
001 000
001 001
001 010
Octal
0
1
2
3
4
5
6
7
10
11
12
486
-448
38
-32
6
7 x 82
4 x 81
6 x 80
Answer: 7468
Method 2:
436 / 8 = 60 remainder 6
60 / 8 = 7 remainder 4
7 / 8 = 0 remainder 7
We write the remainders in reverse order to get the answer as 7468
Hexadecimal Numbering System (Base 16)
Hexadecimal system uses 16 different digits and uses 4 bit groupings.
Data in 8-, 16- or 32- bit digital systems can be represented as a 2-, 4- or
8- digit hexadecimal code.
167
166
165
65536
164
163
162
161
160
4096
512
256
16
Page 5 of 10
Decimal
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Binary
0000 0000
0000 0001
0000 0010
0000 0011
0000 0100
0000 0101
0000 0110
0000 0111
0000 1000
0000 1001
0000 1010
0000 1011
0000 1100
0000 1101
0000 1110
0000 1111
0001 0000
0001 0001
0001 0010
0001 0011
0001 0100
Hexadecimal
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
10
11
12
13
14
Page 7 of 10
Page 8 of 10
Table 5
American Standard Code for Information Interchange (ASCII)
MSB
LSB
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
000
001
010
011
100
101
NUL
SOH
STX
ETX
EOT
ENQ
ACK
BEL
BS
HT
LF
VT
FF
CR
SO
SI
DLE
DC1
DC2
DC3
DC4
NAK
SYN
ETB
CAN
EM
SUB
ESC
FS
GS
RS
US
SP
!
#
$
%
&
(
)
*
+
,
.
/
0
1
2
3
4
5
6
7
8
9
:
;
<
=
>
?
@
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
[
\
]
GS
HT
LF
NAK
Carriage return
NUL
Direct control
RS
Delete idle
SI
Data link escape
SO
End of medium
SOH
Enquiry
SP
End of transmission
STX
Escape
SUB
End of transmission block
End text
SYN
Form feed
US
Form separator
VT
Page 9 of 10
110
111
a
b
c
d
e
f
g
h
I
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
{
|
}
~
DEL
Group Separator
Horizontal tab
Line feed
Negative
acknowledge
Null
Record separator
Shift in
Shift out
Start of heading
Space
Start text
Substitute
Synchronous idle
Unit separator
Vertical tab
), (b) 2710(
), (c) 25110 (
), (b) 328 (
), (c) 618 (
), (b) 8710 (
), (c) 9410(
), (b) D616 (
), (c) A9416 (
), 10710 (
), (c) 2910 (
), (b) 9410 (
), (c) 4410 (