Standard 9th Number System Power point presentation
1. Number System
• Decimal Number System
• The decimal system contains ten unique
symbols 0,1,2,3,4,5,6,7,8 and 9
• Since counting in decimal involves ten
symbols, we say that it’s base or radix is 10
2. • The left most digit in any number
representation which has the greatest
positional weight out of all the digits present
in that number, is called the most significant
digit (MSD)
• The right most digit in any number
representation which has the least positional
weight out of all the digits present in that
number, is called the least significant digit
(LSD)
3. • The digits on the left side of the decimal point
form the integer part of a decimal number
• The digit on the right side of the decimal point
form the fractional part of a decimal number
• The digit to the right of the decimal point have
weights which are negative powers of 10 and
the digits to the left of the decimal point have
weights which are positive powers of 10
eg 9256.26
Integer part Fractional part
4. • The value of a decimal number is the sum of
the products of the digits of the number with
their respective column weights
• In general
dn
dn-1
dn-2
… d1
d0
. d-1
d-2
d-3
…
• Value of decimal number is
(dn
* 10n
) + (dn-1
* 10n-1
) + … + (d1
* 101
) +
(d0
* 100
) + (d1
* 10-1
) + (d-2
* 10-2
) + …
6. Binary Number System
• The base or radix is 2. hence it has 2 symbols, 0 an
1
• A binary digit is called a bit
• A binary number consist of a sequence of bits,
each of which is either 0 or 1
• The binary point separates the integer and
fraction parts
7. • The first bit to the left of the binary point has a weight
of 20
and that column is called units column.
• The second bit to the left has a weight of 21
and it is in
the 2’s column and so on…
• The first bit to the right of the binary point has a
weight of 2-1
and it is said to be in the 1/ 215
column
and so on
• In general; dn
dn-1
dn-2
… d1
d0
. d-1
d-2
d-3
… dk
its
decimal equivalent is;
(dn
* 2n
) + (dn-1
* 2n-1
) + … + (d1
* 21
) + (d0
* 20
) +
(d-1
* 2-1
) + (d-2
* 2-2
) + ...
8. • Binary number system is used in digital computers
because the switching circuits used in these
computers use 2-state devices such as transistors,
diodes, etc.
• A transistors can be OFF or ON
• A switch can be OPEN or CLOSED
• A diode can be OFF or ON
• These devices have to exist in one of the two
possible states. These 2 states can be represented
by 0 and 1.
9. Decimal to Binary Conversion
• The decimal integer number is converted to binary
integer number by successive division by 2, and the
decimal fraction is converted to binary fraction by
successive multiplication by 2. This is known as double
– dabble method.
• In this method, the given decimal integer number is
successively divided by 2 till the quotient is zero. The
remainder read from bottom to top give the
equivalent binary integer number.
• In the successive multiplication by 2 method, the given
decimal fraction and the subsequent decimal fractions
are successively multiplied by 2, till the fraction part of
the product is 0. The integers are read from top to
bottom give the equivalent binary fraction
15. • Conversion of fraction (0.15)10
• 0.15 0.30 0.60 0.20 0.40 0.80
x 2 x 2 x 2 x 2 x 2 x 2
------- ------- ------- ------- ------- -------
0.30 0.60 1.20 0.40 0.80 1.60
0 0 1 0 0 1
• This particular fraction can never be expressed
exactly in binary. This process may be terminated
after a few steps
• (0.15)10
= (001001)2
• (105.15)10
= (1101001.001001)2
20. Binary to Decimal Conversion
• Binary numbers may be converted to their
decimal equivalents by the positional weights
method. In this method the, each binary digit
of the number is multiplied by its positional
weight and the product terms are added to
obtain the decimal number.
25. Octal Number System
• Base or radix is 8
• Has 8 independent symbols 0,1,2,3,4,5,6,7,8
• Since its base is 8 = 23 ,
every 3 bit group of binary
can be represented by an octal digit.
• When dealing with large binary numbers of many
bits,it is convenient and more efficient for us to
write the numbers in octal rather than binary.
27. • Binary To octal conversion
• To convert a binary number to an octal
number, starting from the binary point make
groups of 3 bits each ,on either side of the
binary point and replace each 3 bit binary
group by the equivalent octal digit.
31. • Convert Binary number (111110011001)2
to its
octal equivalent
•
32. Decimal to Octal
• To convert a mixed decimal number to a mixed
octal number, convert the integer and the
fraction parts separately.
• To convert the given decimal integer number
to octal,succefully divide the given number by
8 till the quotient is 0.The remainder read
upwards gives the equivalent octal number.
33. • To convert the given decimal fraction to octal
successively multiply the decimal fraction by 8
till the product is 0 .
• The integers to the left of the octal point read
downwards give the octal fraction.
36. • Convert (0.6875) to octal
• 0.6875 0.5000
x 8 x 8
-------- --------
5.5000 4.0000
•
• 5 4
37. • Convert (112)10
to ( )8
Soln:
(160)8
• Convert (2048)10
to ( )8
• Soln:
(4000)8
• Convert (891)10
to ( )8
• Soln:
(1573)8
38. Octal Number to Decimal Conversion
• To convert an octal number to a decimal
number,multiply each digit in the octal
number by the weight of its position and add
all the product terms.
40. • Convert 23228
to its decimal equivalent
• =(2*83
)+(2*82
)+(2*81
)+(2*80
)
• =1024+192+16+2
• =123410
41. Hexadecimal Number System
• Binary Numbers are too lengthy to be handled
by humans so there is a need to represent the
binary numbers concisely.Hence haxadecimal
number system was developed.
• Base or radix is 16.
• The 16 independent sysmbols are
0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
42. • Since its base is 16 that is 24
every 4 binary
digit combination can be represented by one
hexadecimal digit.
• A 4 bit group is called a nibble.
Since computer
words come in 8 bits ,16 bits ,32 bits and so on
.i.e multiples of 4 bits,they can be represented
in hexadecimal.
43. • Bit:A bit short for bit is the smallest unit of
data that can be stored in the computer
• 1 (True) 0 (False)
• Byte:A byte contains 8 bits.For example
11101001.
• (A single character that you type ,such as the
letter A or letter T takes up one byte of
storage.
46. (100011011011110101000100001)2
100 0110 1101 1110 1010 0010 0001
0100 0110 1101 1110 1010 0010 0001
binary: 0100 0110 1101 1110 1010 0010 0001
hex: 4 6 D E A 2 1
Convert Binary to Hexadecimal
47. • Hexadecimal to Binary
• To convert a hexadecimal number to
binary,replace each hex digit by its 4 bit binary
group.
48. • Convert 4BAC 16
to binary
• 4 B A C
• 0100 1011 1010 1100
• (0100101110101100)2
49. • 3 A 9 E . B 0 D
• 0011 1010 1001 1110 1011 0000 1101
• (0011101010011110101100001101)
2
50. • Decimal to Hexadecimal
• Successively divide the given decimal number
by 16 till the quotient is 0.
• The remainder read from bottom to top gives
the equivalent hexadecimal integer.
• To convert a decimal fraction to hexadecimal
successively multiply the given decimal
fraction by 16,till the product is 0.
53. • Hexadecimal to Decimal
(5C7)16
to decimal
=(5*162
)+(12*161
)+(7*160
)
=(5*16*16)+(192)+7
=1280+192+7
=(1479)10
54. ASCII CODE
• ASCII stands for American Standard Code for
Information Interchange.
• Computers can only understand numbers, so
an ASCII code is the numerical representation
of a character such as 'a' or '@' or an action of
some sort.