A related question: Why do we even have both an sqrt(float) and an sqrt(real) in the first place?<br><br><div class="gmail_quote">On Tue, Jul 13, 2010 at 4:58 PM, David Simcha <span dir="ltr"><<a href="mailto:dsimcha@gmail.com">dsimcha@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I just submitted a bug report (Bug 4455; <a href="http://d.puremagic.com/issues/post_bug.cgi" target="_blank">http://d.puremagic.com/issues/post_bug.cgi</a>) because std.math doesn't let you take the square root of an integer w/o an explicit cast. This has been a subtle annoyance to me for ages. Is it ok if I just fix this, or is there some reason I'm not aware of (i.e. other than a simple oversight) why sqrt() doesn't already forward integers to sqrt(real)?<br>
</blockquote></div><br>