<div>Do we really want the sqrt of a integer to return a real?</div><div>I would expect it to return floor(sqrt(n)), in the same way that integer division does.</div><div>What do other people think/expect?</div><div><br></div>
<div>Daniel.<br><br><div class="gmail_quote">On Thu, Aug 12, 2010 at 12:43 PM, <a href="http://dsource.org">dsource.org</a> <span dir="ltr">&lt;<a href="mailto:noreply@dsource.org">noreply@dsource.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">phobos commit, revision 1833<br>
<br>
<br>
user: dsimcha<br>
<br>
msg:<br>
Bug 4455:  Taking the sqrt of an integer shouldn&#39;t require an explicit cast.<br>
<br>
<a href="http://www.dsource.org/projects/phobos/changeset/1833" target="_blank">http://www.dsource.org/projects/phobos/changeset/1833</a><br>
<br>
_______________________________________________<br>
phobos mailing list<br>
<a href="mailto:phobos@puremagic.com">phobos@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/phobos" target="_blank">http://lists.puremagic.com/mailman/listinfo/phobos</a><br>
</blockquote></div><br></div>