From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: (elisp)Numbers Date: Tue, 21 Oct 2003 07:38:56 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <2719-Tue21Oct2003073855+0200-eliz@elta.co.il> References: <200310210229.h9L2TGl12085@raven.dms.auburn.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1066715089 10295 80.91.224.253 (21 Oct 2003 05:44:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Oct 2003 05:44:49 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Oct 21 07:44:47 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ABpK3-0004i5-00 for ; Tue, 21 Oct 2003 07:44:47 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ABpK3-0007OZ-00 for ; Tue, 21 Oct 2003 07:44:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ABpK0-0006ew-MT for emacs-devel@quimby.gnus.org; Tue, 21 Oct 2003 01:44:44 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ABpJq-0006dr-5P for emacs-devel@gnu.org; Tue, 21 Oct 2003 01:44:34 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ABpJJ-0006R5-1j for emacs-devel@gnu.org; Tue, 21 Oct 2003 01:44:32 -0400 Original-Received: from [192.114.186.23] (helo=aragorn.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ABpJI-0006QT-L8 for emacs-devel@gnu.org; Tue, 21 Oct 2003 01:44:00 -0400 Original-Received: from zaretski ([80.230.157.144]) by aragorn.inter.net.il (Mirapoint Messaging Server MOS 3.3.7-GR) with ESMTP id BRO70536; Tue, 21 Oct 2003 07:43:48 +0200 (IST) Original-To: Luc Teirlinck X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <200310210229.h9L2TGl12085@raven.dms.auburn.edu> (message from Luc Teirlinck on Mon, 20 Oct 2003 21:29:16 -0500 (CDT)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17287 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17287 > Date: Mon, 20 Oct 2003 21:29:16 -0500 (CDT) > From: Luc Teirlinck > > 1. In (elisp)Numeric Conversions, is it worth pointing out that not > only `floor', but also `truncate', `ceiling' and `round' take an > optional DIVISOR argument? IMHO, yes. > 2. In (elisp)Math Functions, it is said that asin, acos, log, log10 > and sqrt all return NaN values for out-of-range arguments, but, on > my machine, only `sqrt' does. The others throw an error, see the > IELM run below. Is this machine dependent? Yes, see the commentary at the beginning of src/floatfns.c, in particular the HAVE_MATHERR and the various FLOAT_CHECK_* macros. The bottom line is that the details depend on the specific implementation of handling abnormal arguments by the system libraries. (Btw, I expect the bahavior we see today to change over the next years, as C9x propagates with its new requirements about FP exceptions.)