TD22057 <[EMAIL PROTECTED]> added the comment: That's not my code - it's an example ;)
My code reads binary data from a hardware system that is encoding 32 bit floats. The numbers I get back from struct.decode have garbage appended on the end of the floating point numbers beyond the 32 bit range. There is no 32 bit float type in python that I can allocate. If you want a 32 bit type as an input, try this: >>> v=123456789 >>> struct.unpack(fmt,struct.pack(fmt,v)) (123456792.0,) _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4114> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com