0% found this document useful (0 votes)
36 views16 pages

2 Conversions

This document discusses number system conversions. It provides examples and steps for converting between binary, decimal, octal, and hexadecimal number systems. Binary to decimal conversion is demonstrated by multiplying each bit by its place value and adding the results. Decimal to binary conversion uses repeated division by 2 with remainders written in reverse order. Conversions involving decimals use repeated multiplication or division as needed. Overall procedures and examples are given for converting between all of the main number systems.

Uploaded by

mohammed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views16 pages

2 Conversions

This document discusses number system conversions. It provides examples and steps for converting between binary, decimal, octal, and hexadecimal number systems. Binary to decimal conversion is demonstrated by multiplying each bit by its place value and adding the results. Decimal to binary conversion uses repeated division by 2 with remainders written in reverse order. Conversions involving decimals use repeated multiplication or division as needed. Overall procedures and examples are given for converting between all of the main number systems.

Uploaded by

mohammed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Ministry of Higher Education and

Scientific Research
Erbil Polytechnic University
Erbil Technology College
Information and Communication
Technology Engineering Department
(ICTE)

Number Systems Conversions 1


Second Stage - Third semester
For studying Year / 2023 – 2024
Assistant Lecturer
Ferman I. Kareem
Introduction

• In number system conversion, we will study to


convert a number of one base, to a number of
another base.

• Number system conversions deal with the


operations to change the base of the numbers.

• For example, to change a decimal number with base


10 to binary number with base 2.
Binary – to – Decimal Conversion

The decimal value of any binary number can be found


by adding the weights of all bits that are 1 and discarding
the weights of all bits that are 0.
The process starts from multiplying the bits of binary
number with its corresponding positional weights. And
lastly, we add all those products.
Example
Convert the binary number 1101101 to decimal.
Solution
26 × 1+ 25 × 1+24 ×0+ 23 × 1 +22 × 1 + 21 × 0 +20 ×1

64+32+ 0 + 8+ 4 + 0 +1= (109)10


Example : (10110.001)2
Decimal – to – Binary Conversion

• Dividing the decimal number by 2 repeatedly, until


the quotient of zero is obtained.

• The remainders are noted down for each of the


division steps.

• Then the column of the remainder is read in reverse


order i.e., from bottom to top order.
Repeated Division -by- 2 Method:

12/2 = 6 reminder = 0 this is the LSB


6/2 = 3 reminder = 0
3/2 = 1 reminder = 1
1/2 = 0 reminder = 1 this is the MSB

(12)10 = (1100)2
What about decimal numbers with fractions?

Repeated MULTIPLECTION - by – 2 method

(0.625)10
Decimal-to-octal Conversion

1. Separate the integer part and the fraction part.

2. Divide the integer part by the required base (8) until the
quotient of zero is obtained.

3. The column of the remainder is read from bottom to top.

4. Multiplied the fraction part with the required base until


zero fraction is obtained.

5. The column of integer part of result is read from top to


bottom
Example. Convert (35.3125)10 into an octal number.
Decimal-to-hexadecimal Conversion

1. Separate the integer part and the fraction part.

2. Divide the integer part by the required base (16) until the
quotient of zero is obtained.

3. The column of the remainder is read from bottom to top.

4. Multiplied the fraction part with the required base until


zero fraction is obtained.

5. The column of integer part of result is read from top to


bottom
Example. Convert (34)10 into a hexadecimal number

The hexadecimal number is (22)


Octal-to-decimal Conversion
Hexadecimal-to-decimal Conversion

• The base of the Hexa-decimal number system is 16.

• Hence, in this number system, the positional


weights will be increasing powers of 16 from right
to left.

• To get the decimal equivalent value, we must


multiply each digit with the respective positional
weight and then add.
Thank you

You might also like