[issue20342] Float rounding issues on Red Hat 6.4 / PPC64 / GCC 4.4.6

STINNER Victor report at bugs.python.org
Wed Jan 22 11:39:16 CET 2014


STINNER Victor added the comment:

According to what Yury told me on IRC, it's a cross-compilation issue. He wrote me that the following commands returns b'C?\xff\x01\x02\x03\x04\x05' which is the double big endian version, but DOUBLE_IS_BIG_ENDIAN_IEEE754 is not defined from pyconfig.h

./python  -c 'import struct; print(ascii(struct.pack("d", 9006104071832581.0)))'

----------
nosy: +haypo

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20342>
_______________________________________


More information about the Python-bugs-list mailing list