0% found this document useful (0 votes)
34 views

Computer 4 - Number Systems

The document discusses different number systems including binary, octal, decimal, and hexadecimal. It provides examples of converting numbers between these number systems as well as arithmetic operations like addition, subtraction, multiplication, and division in binary numbers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views

Computer 4 - Number Systems

The document discusses different number systems including binary, octal, decimal, and hexadecimal. It provides examples of converting numbers between these number systems as well as arithmetic operations like addition, subtraction, multiplication, and division in binary numbers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 20

NUMBER SYSTEMS

BASE NUMBER SYSTEM DIGIT SYMBOL


2 Binary System 0,1
8 Octal System 0,1,2,3,4,5,6,7
10 Decimal System 0,1,2,3,4,5,6,7,8,9
16 Hexadecimal System 0,1,2,3,4,5,6,7,8,9,
A,B,C,D,E,F
DEC OCT BIN HEX
0 0 0 0
1 1 01 1
2 2 10 2
3 3 11 3
4 4 100 4
5 5 101 5
6 6 110 6
7 7 111 7
8 10 1000 8
9 11 1001 9
10 12 1010 A
11 13 1011 B
12 14 1100 C
13 15 1101 D
14 16 1110 E
15 17 1111 F
16 20 10000 10
NUMBER CONVERSION FROM ANY BASE TO
DECIMAL
Example 1:

1110.12 = __________10

1110.12 = 1x23 + 1x22 + 1x21 + 0x20 + 1x2-1


= 1x8 + 1x4 + 1x2 + 0x1 + 1x0.5
= 8 + 4 + 2 + 0 + 0.5
= 14.510
Example 2:

735.68= __________10

735.68= 7x82 + 3x81 + 5x80 + 6x8-1


= 7x64 + 3x8 + 5x1 + 6x0.125
= 448 + 24 + 5 + 0.75
= 477.7510
Example 3:

D3F.416 = __________10

D3F.416 = Dx162 + 3x161 + Fx160 + 4x16-1


= 13x256 + 3x16 + 15x1 + 4x0.0625
= 3328 + 48 + 15 + 0.25
= 3391.2510
NUMBER CONVERSION FROM DECIMAL TO
ANY BASE
Example 1:
5210 = __________2
Remainder
52 / 2 = 26 0 (LSD)
26 / 2 = 13 0
13 / 2 = 6.5 1 5210 = 1101002
6/2 = 3 0
3/2 = 1.5 1
1/2 = 0.5 1 (MSD)
0
Example 2:
0.687510 = __________2

2 x 0.6875 = 1.3750 1 (MSD)


2 x 0.375 = 0.75 0
2 x 0.75 = 1.5 1
2 x 0.5 = 1.0 1 (LSD)
2x0 = 0

0.687510 = 0.10112
Example 3:
0.6810 = __________2
2 x 0.68 = 1.36 1 (MSD)
2 x 0.36 = 0.72 0
2 x 0.72 = 1.44 1
2 x 0.44 = 0.88 0
2 x 0.88 = 1.76 1
2 x 0.76 = 1.52 1 (LSD)
2 x 0.52 = 1.04 1
2 x 0.04 = 0.08 0
2 x 0.08 = 0.16 0
0.6810 = 0.101012
Example 4:
759210 = __________8
Remainder
7592 / 8 = 949 0 (LSD)
949 / 8 = 118.625 5
118 / 8 = 14.75 6
14 / 8 = 1.75 6
1/8 = 0.125 1 (MSD)
0
759210 = 166508
Example 5:
58506.843510 = __________16
Remainder
58506 / 16 = 3656.625 10 A
3656 / 16 = 228.5 8
228 / 16 = 14.25 4
14 / 16 = 0.875 14 E
0
16 x 0.8435 = 13.496 13 D
16 x 0.496 = 7.936 7
16 x 0.936 = 14.976 14 E
16 x 0.976 = 15.616 15 F
58506.843510 = E48A.D7EF16
NUMBER CONVERSION FROM BINARY TO
OCTAL
Examples:
1010.1102 = __________8

1101110.110112 = __________8
NUMBER CONVERSION FROM BINARY TO
HEXADECIMAL
Examples:
1010.11002 = __________16

1101101110.111011002 = __________16
NUMBER CONVERSION FROM OCTAL TO
BINARY
Examples:
764.358 = _______________2

510.668 = _______________2
NUMBER CONVERSION FROM HEXADECIMAL
TO BINARY
Examples:
A6D.4716 = _______________2

1BC.4816 = _______________2
BINARY ARITHMETIC
ADDITION SUBTRACTION
0+0=0 0–0=0
0+1=1 1–0=1
1+0=1 1–1=0
1 + 1 = 10 10 – 1 = 1

MULTIPLICATION DIVISION
0x0=0 0/0=0
0x1=0 0/1=0
1x0=0 1/1=1
1x1=1 1 / 0 = cannot divide by 0
ADDITION
Examples:
1111 110110.11
+ 1100 + 11010.10
11011 1010001.01

10111011.110 10010110.011
+ 10111011.10 + 11010010.111
SUBTRACTION
Examples:
101 10110.01
- 011 - 1011.10
010 1010.11

10011011.11 11010110.011
- 1101010.10 - 10111011.111
MULTIPLICATION
Examples:
111 1011.1
x 101 x 1100.1
111 10111
000 00000
111 00000
100011 10111
10111
10001111.11
MULTIPLICATION
Examples:
1101 1110.1
x 1001 x 1000.1
DIVISION
Examples:
1011.1 10.1
110 1000101.0 110 1111.0
- 110 - 110
0101 110
000 110
1010 0
110
1001
110
110
110
0
DIVISION
Examples:

110 1010110 110 1110011

You might also like