Professional Documents
Culture Documents
Software
Software
Software
System software
System software
System software
OPERATING SYSTEM
OPERATING SYSTEM
Operating System
Operating system
COMPILER
INTERPRETER
UTILITY SOFTWARE
NUMBER SYSTEM
Every
1000th
position
100th
Tenth
Unit
BINARY NUMBER
SYSTEM
16+0+4+1=( 21)
10
=(1390)
10
Example of Hexadecimal
(
=10X256+11X16+13X1
=2560+176+13=(2749)10.
a)
b)
c)
d)
2
2
2
2
2
2
THE BINARY
(1000101)
81
40
20
10
5
2
1
1 L.S.B
0
0
0
1
0
1 M.S.B
CONVERT 1101.11011 TO
DECIMAL
1101.11011=23 X1+2 2X1+21 X0+
2 0X1+2-1 X1 +2-2 X1+2-3 X0+2-4 X1
+2-5 X1
=8+4+0+1+0.5X1+0.25X1+
+0.125X0 + 0.0625X1+0.03125X1
=13+0.75+0+0.09375=13+0.84375
=13.84375
0.6875X2=1+0.3750
0.3750X2=0+0.7500
0.7500X2=1+0.5000
0.5000X2=1 +0.0000
(0.6875)10=(0.1011)2
1
0
1
1
0.153X8=4.104
0.104X8=0.832
0.832X8=6.656
0.656X8=5.248
0.248X8=1.984
O.984X8=7.872
(0.513)10=(0.406517) 8
Rs complement of number
Given a positive number N in base r
with an integer part of n digits the rs
complement of N is defined as :r n N for N not equal to zero.
10 S Complement of (52520) 10 is
10 5-52520=47480 n=5 no of digits.
10s complement of 0.3267 is
1-0.3267=0.6733
no integer part n=0 100=1
R-1 s complement
Given a positive number N in base r
with an integer part of n digits and a
fraction part of m digits r-1 s
complement of N defined as Rn Rm-N
9s complement of (25.639) 10 is
10 2-10-3-25.639 =
= 99.999-25.639
=74.360
9 s complement of (52520) is
=105-10 0-52520=99999-53520=47479
2S COMPLEMENT OF
101100
(101100)=(26)10-(101100)2
=(1000000-101100)= 010100
1000000
101100
-------------------0 1 0 1 0 0 BECAUSE Binary subtraction
x
y
difference borrow
0
0
0
0
0
1
1
1
1
0
1
0
1
1
0
0
R-1 s complement
1S Complement of 101100 is
(26-1)-(101100)=111111-101100
=010011
1 11111
1 0 1100
-----------------01 0 0 1 1
BINARY ADDITION
Y
0
1
1
1
SUM
0
1
0
0
CARRY
0
0
0
1
BINARY ADDITION
To add binary number (111001)2
and the binary number (110010)2
______________________________
1 1 1 0 0 1
(57)10
+ 1 1 0 0 1 0 + (50)10
1 0 0 1 0 1 1
107
BINARY SUBTRACTION
Sign magnititude
Representation
Binary subtraction
0
1
1
Difference
1
0
1
Borrow
1
0
0
0
subtraction
Complement method of
subtraction
Ordinary subtraction As
6 4 0
9 s complement of 557
+ 5 5
7 = 10 3-10 0-557=1000-1-557
8 3
= 999-557= 442
Ten s complement of number 557
Is 103-557=1000-557= 443.
Complements subtraction
6 4 0
+
4 4 3 10 s complement of 557
10 8 3 = discard the end carry
We get = 83
6 4 0
+ 4 4 2 9 s complement of 557
8 2
+ 1 (add end carry )
8 3
Binary subtraction
0
0
1
1
1
0
0
0
1
1
0
0
1
1 2s complement
0=1 0 1 0 0