TOPIC 1 :
Arithmetics for Computers (Number Systems and Operations)
--- SIM YEE YEE
--- SIM YEE YEE
Number System
Number system
is a system
for expressing numbers
using digits or other
symbols in a
consistent manner. The number
system we use
nowadays is based
on the Hindu-Arabic system
which uses the
digits 0 1
2 3 4
5 6 7
8 & 9.
Binary system is a base-2
system represents numeric
values using 2
symbols , 0 & 1.
BINARY ADDITION
The four
basic rules for
binary addition are
as follows:
0
+ 0 =
0 Sum of
0 with a
carry of 0
0
+ 1 =
1 Sum of
1 with a
carry of 0
1
+ 0 =
1 Sum of
1 with a
carry of 0
1 +
1 = 10
Sum of 0
with a carry
of 1
BINARY SUBTRACTION
The four
basic rules for
binary subtraction are
as follows:
0
- 0 =
0
1 0
- 1 =
1 0 -
1 with a
borrow of 1
1
- 0 =
1
1
- 1 =
0
BINARY MULTIPICATION
The four
basic rules for
binary multiplication are
as follows:
0
x 0 =
0
0
x 1 =
0
1
x 0 =
0
1
x 1 =
1
BINARY DIVISION
DECIMAL
The decimal numeral system has ten as its base. It is the numeral base most widely used by modern civilizations. Decimal system using only the ten basic symbols 1,2,3,4,5,6,7,8,9 and 0.
DECIMAL ADDITION
DECIMAL SUBTRACTON
DECIMAL MULTIPLICATION
DECIMAL DIVISION
HEXADEIMAL
Hexadecimal
is a base 16 system. This system uses symbols 0 – 9 to represent the value from zero to 9 and symbols A – F to represent
the value from ten to fifteen.
HEXADECIMAL
ADDITION
HEXADECIMAL SUBTRACTION
HEXADECIMAL MULTIPLICATION
HEXADECIMAL DIVISION