title: Fixed point binary and back python
body: <p>I am fairly new to python is there a fast way to convert decimal to 16-bit fixed-point binary (1-bit sign – 7-bit integer – 8-bit fraction) and back in python.</p>
  <p>I would like to manipulate the binary and convert this manipulated binary back to decimal.</p>
  <p>Example <code>1.25 -&gt; 00000001.01000000</code></p>
  <p>Manipulate first fraction part (0-&gt;1)</p>
  <pre><code>00000001.11000000 -&gt; 1.75
  </code></pre>
  <p>Would really appreciate any help.</p>