Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

Instead of calling float(), perhaps do an int/int division to match the other 
code path so that the function depends on only one mechanism for building the 
float result.

-    return float(_isqrt_frac_rto(n, m << 2 * q) << q)
+    (_isqrt_frac_rto(n, m << 2 * q) << q) / 1

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45876>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to