Another such annoyance is than (min 1 +inf.0) =&gt; 1.0 - because if any argument is inexact, the result is inexact. I don&#39;t think this makes sense in the case of infinities. Infinities are very useful as initial values for things that are being minimized or maximized, but there is always the need for inexact-&gt;exact to protect against the (unexpected) coercion.<br>
<br>This is all from the original R5RS and continued in R6RS - but, we aren&#39;t that language.<br><br>Could we get an exception to the coercions in the case of +/-inf.0? Or an alternative min/max that don&#39;t do it?<br>
<br><div class="gmail_quote">On Fri, Sep 30, 2011 at 6:53 AM, Matthias Felleisen <span dir="ltr">&lt;<a href="mailto:matthias@ccs.neu.edu">matthias@ccs.neu.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
exact-round is preferred.<br>
<div><div></div><div class="h5"><br>
<br>
<br>
On Sep 30, 2011, at 8:51 AM, Eli Barzilay wrote:<br>
<br>
&gt; Yesterday, Ryan Culpepper wrote:<br>
&gt;&gt; The pragmatic answer is you generally have to write<br>
&gt;&gt;<br>
&gt;&gt;   (inexact-&gt;exact (round x))<br>
&gt;&gt;<br>
&gt;&gt; which is annoying, but no one has yet bothered to add a standard<br>
&gt;&gt; library function for this, as far as I know.<br>
&gt;<br>
&gt; [From the annoyed side, especially since that thing tends to come in<br>
&gt; bunches which can make some quick code look much heavier than it is:]<br>
&gt;<br>
&gt; Maybe it&#39;s time to add something for that?  `eround&#39;?  (But even<br>
&gt; `exact-round&#39; would be better than the above.)<br>
&gt;<br>
&gt; --<br>
&gt;          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:<br>
&gt;                    <a href="http://barzilay.org/" target="_blank">http://barzilay.org/</a>                   Maze is Life!<br>
&gt; _________________________________________________<br>
&gt;  For list-related administrative tasks:<br>
&gt;  <a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
<br>
_________________________________________________<br>
  For list-related administrative tasks:<br>
  <a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
</div></div></blockquote></div><br>