Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

CONVERSION OF NUMBER SYSTEMS

Logic Circuits and Switching Theory by: Engr. Marzan


BINARY TO DECIMAL

Example: Convert 1 1101.0112 to its equivalent


in decimal number system.

= (24x 1)+ (23x 1) +(22x 1)+


(21x 0)+ (20x 1)+ (2-1x 0) +
(2-2x 1) + (2-3x 1)
= 16 + 8 + 4 + 0 + 1 + 0 + 0.25 +
0.125
Multiply each of the bits by
the power series of two and = 29. 37510
take the sum of all the
products

Logic Circuits and Switching Theory by: Engr. Marzan


OCTAL TO DECIMAL

Example: Convert 3075.1048 to its equivalent in


decimal number system.

= (83x 3) +(82x 0)+


(81x 7)+ (80x 5)+ (8-1x 1) +
(8-2x 0) + (8-3x 4)
= 1536+0+56+5+0.125+
0+0.0078125
Multiply each of the digits = 1597.13281310
by the power series of eight
and take the sum of all the
products

Logic Circuits and Switching Theory by: Engr. Marzan


HEXADECIMAL TO DECIMAL

Example: Convert 3𝐸05.1𝐹416 to its equivalent


in decimal number system.

= (163x 3) +(162x E)+


(161x 0)+ (160x 5)+ (16-1x 1) +
(16-2x F) + (16-3x 4)
= 12288+3584+0+5+ 0.0625 +
0.05859375 + 0.0009765625
Multiply each of the bits by = 15877.1220710
the power series of sixteen
and take the sum of all the
products
Logic Circuits and Switching Theory by: Engr. Marzan
DECIMAL TO
BINARY

Example: Convert
4568.10410 to its
equivalent in binary
number system.

The desired base is 2, so


the divisor and multiplier
will be 2

Logic Circuits and Switching Theory by: Engr. Marzan


DECIMAL TO OCTAL

Example: Convert 3075.10410 to its equivalent


in octal number system.

The desired base is


8, so the divisor
and multiplier will
be 8

Logic Circuits and Switching Theory by: Engr. Marzan


DECIMAL TO
HEXADECIMAL

Example: Convert
4685.10510 to its
equivalent in
hexadecimal
number system.
The desired base is
16, so the divisor
and multiplier will
be 8

Logic Circuits and Switching Theory by: Engr. Marzan


BINARY TO OCTAL

Example: Convert 111 0101.00112 to its


equivalent in octal number system.

Starting from the


fractional period,
group the bits by
three and take the
equivalent of each
group in octal
number system

Logic Circuits and Switching Theory by: Engr. Marzan


BINARY TO HEXADECIMAL

Example: Convert 1 0011 1110 . 0101 112 to


its equivalent in hexadecimal number
system.
Starting from the
fractional period,
group the bits by four
and take the
equivalent of each
group in hexadecimal
number system

Logic Circuits and Switching Theory by: Engr. Marzan


OCTAL TO BINARY

Example: Convert 3075.1048 to its equivalent


in binary number system.

Take the equivalent


of each digit in
binary system
considering 3 bits
each and combine it
all.

Logic Circuits and Switching Theory by: Engr. Marzan


HEXADECIMAL TO BINARY

Example: Convert 𝐸5𝐵3. 𝐴0416 to its equivalent


in binary number system.

Take the equivalent


of each digit in
binary system
considering 4 bits
each and combine
it all.

Logic Circuits and Switching Theory by: Engr. Marzan


OCTAL TO HEXADECIMAL

Example: Convert 3075.1048 to its equivalent in


hexadecimal number system.

This is done by performing the conversion of octal


to binary then binary to hexadecimal

Logic Circuits and Switching Theory by: Engr. Marzan


HEXADECIMAL TO OCTAL

Example: Convert 𝐸5𝐵3. 𝐴0416 to its equivalent in


octal number system.

This is done by performing the conversion of


hexadecimal to binary then binary to octal

Logic Circuits and Switching Theory by: Engr. Marzan


THANK YOU

Logic Circuits and Switching Theory by: Engr. Marzan

You might also like