title: How to convert a hex-string into an unpacked IEEE 754 format number:-
body: <p>using Python 2.7.3: How to convert a hex-string into an unpacked IEEE 754 format number:-</p>
  
  <p>I have a string of hex data in this form:</p>
  
  <pre><code>data = '38 1A A3 44'
  </code></pre>
  
  <p>I would like to convert this to a floating point number by using struct.unpack:</p>
  
  <pre><code>fdata = struct.unpack('&lt;f','\x38\xA1\xA3\x44')  # fdata=1304.8193359375
  </code></pre>
  
  <p>Is there a Pythonic solution or do I need to somehow substitute an escape sequence for each space in <em>data</em>?</p>