mirror of
https://github.com/python/cpython.git
synced 2025-10-29 09:29:26 +00:00
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.
This commit is contained in:
parent
b9f7f24c25
commit
827b35c9fe
9 changed files with 743 additions and 3 deletions
|
|
@ -827,6 +827,10 @@
|
|||
RelativePath="..\..\Objects\dictobject.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\Objects\doubledigits.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\Objects\memoryobject.c"
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue