]> granicus.if.org Git - python/commit
Issue #3166: Make long -> float (and int -> float) conversions
authorMark Dickinson <dickinsm@gmail.com>
Mon, 20 Apr 2009 21:13:33 +0000 (21:13 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Mon, 20 Apr 2009 21:13:33 +0000 (21:13 +0000)
commit6736cf8d20b67b74e8e959622132963285156242
tree6527638e42304a987b3ebc1541e4b75a3a838500
parentcccfc825e49760d8e46db38df50fb992a184b3ee
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.
Lib/test/test_int.py
Lib/test/test_long.py
Misc/NEWS
Objects/intobject.c
Objects/longobject.c