diff options
author | Guido van Rossum <guido@python.org> | 1998-05-09 14:42:25 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-05-09 14:42:25 (GMT) |
commit | 1e162d3753528ef25885f20106512599ebad9b0b (patch) | |
tree | bb88757effc3aba352db9f956a09a4cda8b48812 /Modules | |
parent | ae94cf292ba0317ac70a5eca3004a2fa5bcaad80 (diff) | |
download | cpython-1e162d3753528ef25885f20106512599ebad9b0b.zip cpython-1e162d3753528ef25885f20106512599ebad9b0b.tar.gz cpython-1e162d3753528ef25885f20106512599ebad9b0b.tar.bz2 |
Implement round() slightly different, so that for negative ndigits no
additional errors happen in the last step. The trick is to avoid
division by 0.1**n -- multiply by 10.0**n instead.
Diffstat (limited to 'Modules')
0 files changed, 0 insertions, 0 deletions