summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-04-20 21:38:00 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-04-20 21:38:00 (GMT)
commitc630039edd7526642ffdaeee3bfa81352b5c98ae (patch)
tree08e885e766a83d689c499522c873e04fcd93cb8f /Misc
parent628fbd59ea2819e55e81ca21bbb52e7d5f4cface (diff)
downloadcpython-c630039edd7526642ffdaeee3bfa81352b5c98ae.zip
cpython-c630039edd7526642ffdaeee3bfa81352b5c98ae.tar.gz
cpython-c630039edd7526642ffdaeee3bfa81352b5c98ae.tar.bz2
Merged revisions 71772 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r71772 | mark.dickinson | 2009-04-20 22:13:33 +0100 (Mon, 20 Apr 2009) | 5 lines Issue #3166: Make long -> float (and int -> float) conversions correctly rounded, using round-half-to-even. This ensures that the value of float(n) doesn't depend on whether we're using 15-bit digits or 30-bit digits for Python longs. ........
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 523166c..ca4a864 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,9 @@ What's New in Python 3.1 beta 1?
Core and Builtins
-----------------
+- Issue #3166: Make long -> float (and int -> float) conversions
+ correctly rounded.
+
- Issue #1869 (and many duplicates): make round(x, n) correctly
rounded for a float x, by using the decimal <-> binary conversions
from Python/dtoa.c. As a consequence, (e.g.) round(x, 2) now