From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: min, max and nans Date: Tue, 06 May 2003 09:26:28 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87ade1t1p7.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052178849 32222 80.91.224.249 (5 May 2003 23:54:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 5 May 2003 23:54:09 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue May 06 01:54:03 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Cplm-0008Ku-00 for ; Tue, 06 May 2003 01:53:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19Cpmr-0008Fg-02 for guile-devel@m.gmane.org; Mon, 05 May 2003 19:54:25 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19CpmN-0007tU-00 for guile-devel@gnu.org; Mon, 05 May 2003 19:53:55 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19Cpm3-0007eW-00 for guile-devel@gnu.org; Mon, 05 May 2003 19:53:36 -0400 Original-Received: from snoopy.pacific.net.au ([61.8.0.36]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19Cpls-0007Wz-00 for guile-devel@gnu.org; Mon, 05 May 2003 19:53:25 -0400 Original-Received: from sunny.pacific.net.au (sunny.pacific.net.au [203.2.228.40]) h45NlAKG014388 for ; Tue, 6 May 2003 09:53:03 +1000 Original-Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h45NQYQg029473 for ; Tue, 6 May 2003 09:26:34 +1000 (EST) Original-Received: from localhost (ppp27.dyn228.pacific.net.au [203.143.228.27]) by wisma.pacific.net.au (8.12.9/8.12.9) with ESMTP id h45NQWYZ004205 for ; Tue, 6 May 2003 09:26:33 +1000 (EST) Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 19CpLo-0001HS-00; Tue, 06 May 2003 09:26:28 +1000 Original-To: guile-devel@gnu.org User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2271 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2271 While nosing around mpz_cmp_d in min and max, I noticed guile> (max +nan.0 0) +nan.0 guile> (max 0 +nan.0) 0.0 which strikes me as a bit inconsistent. Is there a theory on what min and max should do with nans? I'd think returning nan if any argument is a nan would be a good idea. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel