Greeting,
I can't seem to get what I think should happen using struct with floating point format. Say I want to pack 0.5:
I would expect 4 bytes and the first one at least ought to be non-zero. Is this a problem with struct or with me?
_________________
Bob Rashkin
I can't seem to get what I think should happen using struct with floating point format. Say I want to pack 0.5:
Code:
>>> import struct
>>> struct.pack('f',.5)
'\x00\x00\x00?'
>>>
I would expect 4 bytes and the first one at least ought to be non-zero. Is this a problem with struct or with me?
_________________
Bob Rashkin