You are on page 1of 12

In the name of Almighty Allah…

Introduction to Information
and Communication
Technologies

Muhammad Bilal
Email:- m.bilal@riphahfsd.edu.pk

Riphah International University


Motivation
Decimal Number System
Decimal to Binary Conversion (10 to 2)
Example 910
Method 1 MSB
9/2 = 4 remainder = 1
4/2 = 2 remainder = 0
2/2 = 1 remainder = 0
1/2 = 0 remainder = 1
LSB
910 = 10012
Decimal Number System
Decimal to Binary Conversion (10 to 2)
Example 910
Method 2
2 9
2 4-1
2 2-0
2 1-0

910 = 10012
Decimal Number System

Decimal to Binary Conversion (10 to 2)


Decimal Number System
Decimal to Binary Conversion (10 to 2)
Example 14310
2 143
2 71 - 1
2 35 - 1
2 17 - 1
2 8-1
2 4–0
2 2 -0
2 1- 0
14310 = 100011112
Decimal Number System
Decimal to Binary Conversion (10 to 2)
Example (0.75)10
0.75 × 2 = 1.50 1 up to down calculate
0.50 × 2 = 1.00 1
(0.75)10 = (0.11)2

Note: There are two part of decimal left side part is integral part and
right side part is fractional part. Calculation end when fractional part
is 0 form (means no more calculation perform)
Decimal Number System
Decimal to Binary Conversion (10 to 2)
Example (0.9)10

0.9 × 2 = 1.8 1
0.8 × 2 = 1.6 1
0.6 × 2 = 1.2 1
0.2 × 2 = 0.4 0
0.4 × 2 = 0.8 0
0.8 × 2 = 1.6 1
0.6 × 2 = 1.2 1
0.2 × 2 = 0.4 0 = 0.11100110…..
(0.9)10 = (0.11100110)2
Note: If the conversion is not ended and still continuing; we write the approximation in 16 bits.
Decimal Number System
Decimal to Binary Conversion. Practice
i. 96510
ii. 9910
iii. 100010
iv. (0.25)10
v. (0.8)10
vi. 54310
vii. 5.310
Reference
[1] PETER NORTON, (2006).INTRODUCTION TO COMPUTER! New York: McGraw-Hill Company.
[2] Sinha, Pradeep K., and Priti Sinha. Computer fundamentals. BPB publications, 2010.

11

You might also like