Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

What do you think about adding two integer square root functions -- for the 
largest int `a` satisfying `a * a <= n` and for the smallest int `a` satisfying 
`a * a >= n`? The latter case is also often encounter in practice. For example, 
this is the size of the smallest square table in which we can place n items, 
not more than one per cell. We could call these functions fllorsqtr() and 
ceilsqrt() (if there are no better standard names).

----------

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

Reply via email to