Sec 4
Sec 4
Computing Basics
Grade: 1
Hadeel Elsisi
OUTLINES
Introduction
Number System Types
➢ Decimal Number System
➢ Binary Number System
➢ Octal Number System
➢ Hexadecimal Number System
Number system
❖ The way to represent or express a number in different forms . In other words, it is a technique
used in representing numbers in daily life and in the computer system architecture.
❖ The total number of digits used in a number system is called its base or radix.
4
NUMBER SYSTEM TYPES
5
NUMBER SYSTEM TYPES
6
NUMBER SYSTEM TYPES
7
NUMBER SYSTEM TYPES
8
NUMBER SYSTEM CONVERSIONS
1 ÷2 0 R 1 (348)10 = (101011100)2
NUMBER SYSTEM CONVERSIONS
12
NUMBER SYSTEM CONVERSIONS
1 ÷ 16 0 R 1 (348)10 = (15C)16
13
NUMBER SYSTEM CONVERSIONS
❑ Step 1:
Determine the column (positional) value of each digit.
❑ Step 2:
Multiply the obtained column values by the digits in the corresponding columns.
❑ Step 3:
Calculate the sum of these products.
14
NUMBER SYSTEM CONVERSIONS
1 0 1 0 1 1 1 0 0
×
28 27 2 6 25 24 23 22 2 1 20
15
NUMBER SYSTEM CONVERSIONS
( 534)8= ?(Decimal)10
5 3 4
× = 5× 82 + 3 × 81 + 4 × 80 = (348)10
82 81 80
16
NUMBER SYSTEM CONVERSIONS
( 15C)16= ?(Decimal)10
1 5 c
× = 1× 162 + 5 × 161 + 12 × 160 = (348)10
162 161 160
17
NUMBER SYSTEM CONVERSIONS
18
NUMBER SYSTEM CONVERSIONS
( 101011100)2 = ?(Octal)8
1 0 1 0 1 1 1 0 0
22 21 20 23 21 20 22 21 20
5 3 4
19
NUMBER SYSTEM CONVERSIONS
( 101011100)2 = ?(Hexa)16
1 0 1 0 1 1 1 0 0
20 23 22 21 20 23 22 21 20
1 5 C
Ans (01011100) = (15C)16
2
20
CONCLUSION
21
THE DECIMAL NUMBER SYSTEM:
22
BINARY-TO-DECIMAL CONVERSION:
23
OCTAL-TO-DECIMAL CONVERSION
24
HEXADECIMAL TO DECIMAL
25
DECIMAL TO BINARY
Note:
➢ Any further multiplication by 2 in example 5 will equal to 0;
therefore, the multiplication can be terminated.
➢ However, this, is not so. Often it will be necessary to terminate
the multiplication when an acceptable degree of accuracy is 26
obtained.
➢ The binary number obtained will then be an approximation[5]
DECIMAL TO OCTAL
27
DECIMAL TO HEAXDECIMAL
28
BINARY TO OCTAL
29
BINARY TO HEXADECIMAL
30
QUESTIONS
31