3. WHAT IS NUMBER SYSTEM ?
Asystemfor representingnumberof certaintype.
Example:
• Thereareseveralsystemsfor representingthecounting
numbers.
• Theseincludetheusualbase“10”or decimalsystem
1,2,3…..10,11,12,..99,100,…
4. HOW THE COMPUTER GETS THE
ANSWER
A computer understands information
composed of only zeros and ones.
The decimal number system is
convenient for the programmer.
The computer uses binary digits for its
operation.
8
+1
=9
6. System Base Symbols
Used by
humans?
Used in
computers?
Decimal 10 0,1,…9 Yes No
Binary 2 0, 1 No Yes
Octal 8 0,1,…7 No No
Hexa-
decimal
16 0,1,…9,
A,B,…F
No No
15. BINARY TO HEXADECIMAL
• Group into 4's starting at leastsignificant symbol write 1 hexdigit for
eachgroup.
E.g Convert(1010111011)2to ()16
10 1011 1011
B2 B
Answer= (2BB)16
if the number of
bits is not evenly
divisible by 4,
then add 0's at
the most
significant end.
16. HEXADECIMAL TO BINARY
• For each of the Hexa digit write its binary equivalent.
E.g: Convert(25A0)16to ()2
25A0
0010
0101 1010
0000
Answer= (0010010110100000)2
use 4 bits
to
represent
23. 1’S COMPLEMENT
The 1’s complement of a binary number is the number that
resultswhenwechangeall1’sto zerosandthezeros to ones.
1 1 0 1 0 0 1 0
NOT OPEARATION
0 0 1 0 1 1 0 1