[issue705836] struct.pack of floats in non-native endian order
Facundo Batista
report at bugs.python.org
Sat Jan 19 15:28:29 CET 2008
Facundo Batista added the comment:
A lot of water passed around this bridge, but I don't know if this is fixed:
In the trunk right, now:
>>> v = 7.0 + .1 + .1 + .1 + .1 + .1 + .1 + .1 + .1 + .1 + .1
>>> v
7.9999999999999964
>>> p = struct.pack( ">f", v )
>>> p
'A\x00\x00\x00'
>>> struct.unpack(">f", p)
(8.0,)
----------
nosy: +facundobatista
____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue705836>
____________________________________
More information about the Python-bugs-list
mailing list