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 a4354c7 commit 95330eeCopy full SHA for 95330ee
Lib/statistics.py
@@ -319,7 +319,7 @@ def _sqrt_frac(n: int, m: int) -> float:
319
# See algorithm sketch at: https://bugs.python.org/msg406911
320
q: int = (n.bit_length() - m.bit_length() - _sqrt_shift) // 2
321
if q >= 0:
322
- return float(_isqrt_frac_rto(n, m << 2 * q) << q)
+ return (_isqrt_frac_rto(n, m << 2 * q) << q) / 1
323
else:
324
return _isqrt_frac_rto(n << -2 * q, m) / (1 << -q)
325
0 commit comments