]> granicus.if.org Git - python/commit
Issue #1869 (and 4707, 5118, 5473, 1456775): use the new
authorMark Dickinson <dickinsm@gmail.com>
Sat, 18 Apr 2009 11:48:33 +0000 (11:48 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sat, 18 Apr 2009 11:48:33 +0000 (11:48 +0000)
commite6a076d86c51c9d72fee088dd229a7662ccc6c19
tree86dc10e5fbdf54b653ef87d7a6a8ae4425345ce9
parent60fd0999cce17ec8603edf4219f686c37a260d7b
Issue #1869 (and 4707, 5118, 5473, 1456775):  use the new
string <-> float conversion routines to make round(x, n) correctly
rounded for floats x, so that it always agrees with format(x, '.<n>f').

Also fix some other round nuisances, like round(123.456, 1-2**31) giving
an integer rather than a float.
Lib/test/test_float.py
Misc/NEWS
Objects/floatobject.c