Examples of decimal to binary conversion

Explanation how to convert decimal number to binary number

EXAMPLE 1:

(  78  )10  =  (   ?  )2

Solution:

answer is (  1 0 0 1 1 1 0  )2

EXAMPLE 2:

(  0.6875 )10 = (  ?  )2

Solution:

0.6875 * 2 =  1.375      integer 1

0.375 * 2  =  0.75          integer 0

0.75 * 2    =   1.5            integer 1

0.5 *  2     =      1            integer 1

So,answer is ( 0. 1 0 1 1 )2

EXAMPLE 3:

(  25.625  )10 =(    ?   )2

Solution:
integer part,

fractional part,
0.625 * 2 = 1.25      integer 1
0.25 * 2 = 0.5          integer 0
0.5  * 2 =   1            integer 1

So,  ( 0. 1 0 1 )2

Now, answer will be  ( 1 1 0 0 1 . 1 0 1 ) 2

EXAMPLE 4:

(  38.375  )10  =  (  ?  )

Solution :
integer part ,
fractional part,
0.375 * 2  =  0.75   integer 0
0.75 * 2    =  1.5     integer 1
0.5  * 2     =  1        integer 1

answer is  (  1 0 0 1 1 0 . 1  1 0 )2

                                                                   back to DIGITAL ELCTRONICS

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *