Amend docstring for round_digits()

(cherry picked from commit 9677a2a939)
This commit is contained in:
Sergey B Kirpichev
2026-03-04 07:23:41 +03:00
parent 650520b3c2
commit 1ef88b4fa4
+2 -4
View File
@@ -1102,12 +1102,10 @@ def to_digits_exp(s, dps, base=10):
return sign, digits, exponent
def round_digits(sign, digits, dps, base, rnd=round_nearest, fixed=False):
'''
"""
Returns the rounded digits, and the number of places the decimal point was
shifted.
Supports three kinds of rounding: up, down, or nearest.
'''
"""
assert len(digits) > dps
assert rnd in (round_nearest, round_up, round_down, round_ceiling,