Skip to content

Commit 1ef88b4

Browse files
committed
Amend docstring for round_digits()
(cherry picked from commit 9677a2a)
1 parent 650520b commit 1ef88b4

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

mpmath/libmp/libmpf.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,12 +1102,10 @@ def to_digits_exp(s, dps, base=10):
11021102
return sign, digits, exponent
11031103

11041104
def round_digits(sign, digits, dps, base, rnd=round_nearest, fixed=False):
1105-
'''
1105+
"""
11061106
Returns the rounded digits, and the number of places the decimal point was
11071107
shifted.
1108-
1109-
Supports three kinds of rounding: up, down, or nearest.
1110-
'''
1108+
"""
11111109

11121110
assert len(digits) > dps
11131111
assert rnd in (round_nearest, round_up, round_down, round_ceiling,

0 commit comments

Comments
 (0)