Max M <[EMAIL PROTECTED]> wrote in news:41bf121e$0$280
[EMAIL PROTECTED]:
> 
> ##
> st = '80 00 00 00'
> 
> import binascii
> import struct
> 
> s = ''.join([binascii.a2b_hex(s) for s in st.split()])
> v = struct.unpack("f", s)[0]
> print v
> ##

This one worked great for what I was trying to do.

Thanks to everybody for your help.

TTFN

Ian
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to