title: How to convert between floats and decimal twos complement numbers in Python?
body: <p>I want to convert decimal float numbers in python into twos complement decimal binary numbers. For example 1.5 in twos complement decimal 2.6 (8 bits) would be 0b011000.</p>
  
  <p>Is there a module that can do this for me?</p>