Skip to content

Commit 82dbec6

Browse files
committed
Improve comment
1 parent 70cdade commit 82dbec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/statistics.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def _float_sqrt_of_frac(n: int, m: int) -> float:
332332

333333
def _decimal_sqrt_of_frac(n: int, m: int) -> Decimal:
334334
"""Square root of n/m as a float, correctly rounded."""
335-
# Premise: For decimal, computing sqrt(m / n) can be off by 1 ulp.
335+
# Premise: For decimal, computing (n/m).sqrt() can be off by 1 ulp.
336336
# Method: Check the result, moving up or down a step if needed.
337337
if not n:
338338
return 0.0

0 commit comments

Comments
 (0)