Search

Friday, September 24, 2010

Numbering and Coding System-How to convert number from decimal to binary

DECIMAL TO BINARY CONVERSION USING MAGIC BLOCK:-











                  128     64      32      16       8        4       2        1


example :- Convert the following decimal numbers to binary form a) 27 b) 125

using short trick :-






  1
  1
  0  
  1
 1   
                                                 16       8        4       2       1             decimal form block




16+8+2+1=27   in binary form - (11011)
Fill 1's and 0's in the block to make sum equal to 27

b) 125





  1
  1 
  1 
  1
  1
  0
  1
                             64      32      16       8        4       2        1     




64+32+16+8+4+(2*0)+1=125     binary form = (1111101)

FOLLOW SAME RULE TO CONVERT BINARY TO DECIMAL

No comments: