Steven D'Aprano <[email protected]> added the comment: Yes please for this!
The two usual versions are isqrt and nsqrt: isqrt(n) = largest integer ≤ √n nsqrt(n) = closest integer to √n although to be honest I'm not sure what use cases there are for nsqrt. ---------- nosy: +steven.daprano _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue36887> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
