We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70cdade commit 82dbec6Copy full SHA for 82dbec6
Lib/statistics.py
@@ -332,7 +332,7 @@ def _float_sqrt_of_frac(n: int, m: int) -> float:
332
333
def _decimal_sqrt_of_frac(n: int, m: int) -> Decimal:
334
"""Square root of n/m as a float, correctly rounded."""
335
- # Premise: For decimal, computing sqrt(m / n) can be off by 1 ulp.
+ # Premise: For decimal, computing (n/m).sqrt() can be off by 1 ulp.
336
# Method: Check the result, moving up or down a step if needed.
337
if not n:
338
return 0.0
0 commit comments