On Wed, Nov 18, 2009 at 11:55 AM, Andy Hefner <span dir="ltr"><<a href="mailto:ahefner@gmail.com">ahefner@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Having established that underflow detection works, how do I disable<br>
it? I'll happily take a denormalized float or even zero, rather than<br>
have my program randomly explode due to numerical issues I couldn't<br>
care less about.<br></blockquote></div><br>It is disabled by default, I would say. To disable all floating point exceptions, use (EXT:TRAP-FPE T NIL), as discussed in a different thread.<br><br>To selectively activate / deactivate exceptions, use the condition names: division-by-zero, floating-point-overflow, floating-point-underflow, floating-point-invalid-operation and floating-point-inexact as first argument<br>
<br>Juanjo<br clear="all"><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com">http://juanjose.garciaripoll.googlepages.com</a><br>