]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #1580: New free format floating point representation based on "Floating-Point...
authorChristian Heimes <christian@cheimes.de>
Mon, 10 Dec 2007 22:19:17 +0000 (22:19 +0000)
committerChristian Heimes <christian@cheimes.de>
Mon, 10 Dec 2007 22:19:17 +0000 (22:19 +0000)
commit827b35c9fed9e842c96b41198b26cee96a3e679b
tree14eb9fb523b002aab63bc4b99fbbd1bae16f56c2
parentb9f7f24c2537e40e06de6f12c29f786215b64912
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/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