]> granicus.if.org Git - python/commit
Backport of r59456:59458 from py3k to trunk
authorChristian Heimes <christian@cheimes.de>
Mon, 10 Dec 2007 22:28:56 +0000 (22:28 +0000)
committerChristian Heimes <christian@cheimes.de>
Mon, 10 Dec 2007 22:28:56 +0000 (22:28 +0000)
commit284d9276250d78e8dfe59dc9a64cb0422265148b
treeaf50d506dcace51e3fe2084546320fa5f5ec3bb1
parent8c3d0f7839a380d322428b2284e169d156e26736
Backport of r59456:59458 from py3k to trunk
Issue #1580: New free format floating point representation based on "Floating-Point Printer Sample Code", by Robert G. Burger. For example repr(11./5) now returns '2.2' instead of '2.2000000000000002'.

Thanks to noam for the patch! I had to modify doubledigits.c slightly to support X64 and IA64 machines on Windows. I also added the new file to the three project files.
Include/floatobject.h
Lib/test/floating_points.txt [new file with mode: 0644]
Lib/test/test_float.py
Makefile.pre.in
Misc/NEWS
Objects/doubledigits.c [new file with mode: 0644]
Objects/floatobject.c
PCbuild/pythoncore.vcproj
PCbuild8/pythoncore/pythoncore.vcproj
PCbuild9/pythoncore.vcproj