From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: Re: IEEE Inf and NaN support for numbers.c Date: 14 Mar 2002 21:59:17 +0100 Sender: guile-devel-admin@gnu.org Message-ID: <87lmcuyifu.fsf@zagadka.ping.de> References: <15494.39950.119995.223196@segfault.bogus.domain> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1016139627 19164 127.0.0.1 (14 Mar 2002 21:00:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 14 Mar 2002 21:00:27 +0000 (UTC) Cc: guile-devel Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16lcKo-0004z0-00 for ; Thu, 14 Mar 2002 22:00:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16lcKa-0002RV-00; Thu, 14 Mar 2002 16:00:12 -0500 Original-Received: from dialin.speedway42.dip228.dokom.de ([195.138.42.228] helo=zagadka.ping.de) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16lcHi-0002LS-00 for ; Thu, 14 Mar 2002 15:57:14 -0500 Original-Received: (qmail 2479 invoked by uid 1000); 14 Mar 2002 20:59:17 -0000 Original-To: "John W. Eaton" In-Reply-To: <15494.39950.119995.223196@segfault.bogus.domain> Original-Lines: 28 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:46 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:46 "John W. Eaton" writes: > The following patch adds basic IEEE Inf and NaN support for guile. This > introduces two new predicates (inf? and nan?) and two new functions > (inf and nan, which return IEEE Infinity and NaN values, > respectively). Nice, thanks. > guile> (/ 0) > Inf This is not a good print syntax for the new "inf" value. It looks like a symbol, while it really is a number. Likewise for "NaN". What about using "1/0" for inf and "0/0" for NaN. Does this fit with the IEEE rules? When this works, we don't need the 'inf' and 'nan' procedures. Do we want to care about signalling versus quiet NaNs, and the extra information in the mantissa of NaNs? (I don't think so.) Also, somewhat unrelated to your patch, Guile can not read the (illegal) notation "#.#" that is produces for funny numbers. It's probably best to avoid outputting this notation altogether and just find a way to cope with funny numbers more sanely. (Like you just did for infinity.) _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel