<div dir="ltr">Ah noted, nice point.</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-07 16:53 GMT+01:00 Pierpaolo Bernardi <span dir="ltr"><<a href="mailto:olopierpa@gmail.com" target="_blank">olopierpa@gmail.com</a>></span>:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Fri, Mar 7, 2014 at 4:11 PM, Mikael <<a href="mailto:mikael.rcv@gmail.com">mikael.rcv@gmail.com</a>> wrote:<br>


> Why this result of (haxor-exact->inexact 0), just curious, does the RNRS<br>
> dictate this?<br>
<br>
</div>In addition to what Bradley wrote, returning exact 0 is more in the<br>
spirit of scheme.<br>
<br>
High quality implementations will return exact answer when possible.<br>
Another example is the square root of an exact square: try (sqrt 4) in<br>
various implementations, or (sin 0), or other special angles.<br>
<br>
This behaviour is not mandated, to allow for implementations caring<br>
more about sped than exactness.<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888">P.<br>
</font></span></blockquote></div><br></div>