title: Decimal to half-precision floating point
body: <p>I'm currently trying to convert 44/7 to half-precision floating point format.
  I'm not sure if I've done it correctly so far, so I'd really appreciate it if someone could have a look at it.</p>
  
  <p>44/7 = 6,285714285714...</p>
  
  <pre><code>6 in dual -&gt; 110;
  0.285714 * 2 = 0,571428 -&gt; 0
  0.571428 * 2 = 1.142856 -&gt; 1
  0.142856 * 2 = 0.285714 -&gt; 0
  ... -&gt; 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1...
  
  -&gt; 110, 01001001001001
  -&gt; 1,1001001001001001 -&gt; exponent: 2;
  </code></pre>
  
  <p>Bias + Exponent : 2+15 = 17 => 1 0 0 0 1</p>
  
  <p>All stitched together: 0 1 0 0 0 1 1 0 0 1 0 0 1 0 0 1</p>
  
  <p>I've never converted decimal to 16bit IEEE754, is this the correct way of converting it?
  Thanks a lot!</p>