Staging
v0.5.1
https://github.com/python/cpython
Revision 58d23ae9a919520ee5b849a4c6c48fa833c9958d authored by Tim Peters on 20 March 2003, 18:31:20 UTC, committed by Tim Peters on 20 March 2003, 18:31:20 UTC
pack_float, pack_double, save_float:  All the routines for creating
IEEE-format packed representations of floats and doubles simply ignored
that rounding can (in rare cases) propagate out of a long string of
1 bits.  At worst, the end-off carry can (by mistake) interfere with
the exponent value, and then unpacking yields a result wrong by a factor
of 2.  In less severe cases, it can end up losing more low-order bits
than intended, or fail to catch overflow *caused* by rounding.
1 parent 38d0ccf
History
Tip revision: 58d23ae9a919520ee5b849a4c6c48fa833c9958d authored by Tim Peters on 20 March 2003, 18:31:20 UTC
SF bug 705836: struct.pack of floats in non-native endian order
Tip revision: 58d23ae
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.cvsignore -rw-r--r-- 109 bytes
.hgtags -rw-r--r-- 2.4 KB
LICENSE -rw-r--r-- 12.3 KB
Makefile.pre.in -rw-r--r-- 25.9 KB
PLAN.txt -rw-r--r-- 14.1 KB
README -rw-r--r-- 42.5 KB
acconfig.h -rw-r--r-- 7.5 KB
configure -rwxr-xr-x 210.2 KB
configure.in -rw-r--r-- 55.5 KB
install-sh -rwxr-xr-x 5.5 KB
pyconfig.h.in -rw-r--r-- 19.6 KB
setup.py -rw-r--r-- 35.2 KB

README

back to top