summaryrefslogtreecommitdiffstats
path: root/Python/thread_pthread.h
diff options
context:
space:
mode:
Diffstat (limited to 'Python/thread_pthread.h')
0 files changed, 0 insertions, 0 deletions
d86c51c9d72fee088dd229a7662ccc6c19'>patch) tree86dc10e5fbdf54b653ef87d7a6a8ae4425345ce9 /Objects/floatobject.c parent60fd0999cce17ec8603edf4219f686c37a260d7b (diff)downloadcpython-e6a076d86c51c9d72fee088dd229a7662ccc6c19.zip
cpython-e6a076d86c51c9d72fee088dd229a7662ccc6c19.tar.gz
cpython-e6a076d86c51c9d72fee088dd229a7662ccc6c19.tar.bz2
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.
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r--Objects/floatobject.c166
1 files changed, 142 insertions, 24 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c