From: Barry Margolin
Subject: Re: catching floating point exceptions in lisp
Date: 
Message-ID: <61k7t3$fsi@pasilla.bbnplanet.com>
In article <·············@ics.uci.edu>,
Stephen Dongjun Bay  <····@ics.uci.edu> wrote:
>Does anybody know how to catch floating point exceptions in Lisp?

See the chapter of CLtL2 on the Condition System.  You can establish a
handler for ARITHMETIC-ERROR, DIVIDE-BY-ZERO, FLOATING-POINT-OVERFLOW,
and/or FLOATING-POINT-UNDERFLOW.

Or if you just want the expression to return NIL if it gets an error, use
the IGNORE-ERRORS macro.

-- 
Barry Margolin, ······@bbnplanet.com
GTE Internetworking, Powered by BBN, Cambridge, MA
Support the anti-spam movement; see <http://www.cauce.org/>
Please don't send technical questions directly to me, post them to newsgroups.