title: How to convert a fraction to binary?
body: <p>I don't know how to convert from a fraction to binary. When I search it, there has a solution shows that:</p>
  
  <pre><code>    1              1
  -- (dec)  =   ---- (bin)
  10            1010
  
  
         0.000110011...
        -------------
  1010 | 1.0000000000
           1010
         ------
           01100
            1010
           -----
            0010000
               1010
              -----
               01100
                1010
               -----
                0010
  </code></pre>
  
  <p>I don't know how and why to do it. </p>