COMPUTER ARITHMETIC
AND
DATA REPRESENTATION
, DATA REPRESENATATION
• A digital computer uses the binary system, which has two digits: 0 and 1 and
binary digit is called bit
• Information is represented in digital computers by groups of bits.
• A programmer uses decimal digits A,B…Z, a…z, special symbols,+,-,x etc for
convenience.
• The decimal digits, letters, symbols etc. are converted to binary digits 0 and 1
within the computer.
• To understand operation of digital computers, it is necessary to have know
number systems
, DATA REPRESENATATION
• The base or radix of a number system is defined as the number of differen
digits, which can occur in each position in the number system.
• Decimal Number System
• Decimal Number System has base or radix of 10 thus it uses power of 10 a
includes the digits from 0 to 9.
• Binary Number System
• The base of Binary number system is 2 as it has only 2 numbers 0 and 1.
• Octal and HexaDecimal Number System
• The octal number system has base8; the digits are 0,1,2,3,4,5,6,and 7.
• Hexadecimal number system has base 16 0 to 9 and A, B, C, D, E and F.
, BINARY ARITHMETIC
AND
DATA REPRESENTATION
, DATA REPRESENATATION
• A digital computer uses the binary system, which has two digits: 0 and 1 and
binary digit is called bit
• Information is represented in digital computers by groups of bits.
• A programmer uses decimal digits A,B…Z, a…z, special symbols,+,-,x etc for
convenience.
• The decimal digits, letters, symbols etc. are converted to binary digits 0 and 1
within the computer.
• To understand operation of digital computers, it is necessary to have know
number systems
, DATA REPRESENATATION
• The base or radix of a number system is defined as the number of differen
digits, which can occur in each position in the number system.
• Decimal Number System
• Decimal Number System has base or radix of 10 thus it uses power of 10 a
includes the digits from 0 to 9.
• Binary Number System
• The base of Binary number system is 2 as it has only 2 numbers 0 and 1.
• Octal and HexaDecimal Number System
• The octal number system has base8; the digits are 0,1,2,3,4,5,6,and 7.
• Hexadecimal number system has base 16 0 to 9 and A, B, C, D, E and F.
, BINARY ARITHMETIC