






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Main points are: Binary Representation, Decimal Number, Base-10 Integer, Fractional Decimal Number, Decimal Number to Binary, Additional Resources, Digital Audiovisual Lectures, Multiple-Choice Tests, Mathcad and Maple
Typology: Slides
1 / 12
This page cannot be seen from the preview
Don't miss anything!







2 1 0 1 2
โ โ
Table 1 Converting a base-10 integer to binary representation. Quotient Remainder 11/2 5 5/2 2 2/2 1 1/2 0
Hence
2
10 3 2 1 0 2 ( 1011 )
( 11 ) ( )
=
= a a a a
Start
Input (N) (^10)
i = 0
Divide N by 2 to get quotient Q & remainder R
ai = R
Is Q = 0?
n = i (N) 10 = (an.. .a 0 ) (^2)
STOP
Integer N to be converted to binary format
i=i+1,N=Q
No
Yes
Start
Input (F) (^10)
Multiply F by 2 to get number before decimal, S and after decimal, T
ai = R
Is T =0?
n = i (F) 10 = (a-1.. .a-n) (^2)
STOP
Fraction F to be converted to binary format
No
Yes
i= iโ1,F= T
i =โ 1
Decimal Number to Binary
( ) ( )
( 11 ) 10 = ( 1011 ) 2
( 0. 1875 ) 10 = ( 0. 0011 ) 2
and
we have ( 11. 1875 ) 10 = ( 1011. 0011 ) 2
Since
Convert (^11.^1875 ) 10 to base 2
3 2 1 0
3 1 0
3 1
3 10
1011
1 2 0 2 1 2 1 2
2 2 2
2 2 1
11 2 3
=
= ร + ร + ร + ร
= + +
= + +
= +
1 2 3 4
3 4
3 10
โ โ โ โ
โ โ
โ