Lecture#6
Lecture#6
Introduction to ICT
NUMBER SYSTEM
ARITHMETIC
Lecture#6
Arithmetic operations
Addition of Decimal
Subtraction of Decimal
Addition of Binary
Subtraction of Binary
Addition of Octal
Subtraction of Octal
Addition of Hexadecimal
Subtraction of Hexadecimal
Step 3: Finally, add the decimal numbers similar to integers and place the decimal point
accordingly.
Step 3: Finally, subtract the decimal numbers similar to integers and place the decimal
point accordingly.
Example:7.304 – 1.15
Solution: padding with zero
7.304
1.150
Lining up the decimal
7.304
1.150
Subtraction 6.154
Example: Add (a) 111 and 101 (b) 1010, 1001 and 1101.
a) b)
Perform the following subtractions. (a) 11 - 01 , (b) 11-10 (c) 100 - 011
a) b) c)
COMSATS University Islamabad Abbottabad Campus 9
ADDITION OF OCTAL