From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: expt weirdness in floatfns.c Date: 06 Aug 2005 18:36:03 -0400 Message-ID: References: <87ek98at3c.fsf@gnufans.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1123368308 3277 80.91.229.2 (6 Aug 2005 22:45:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 6 Aug 2005 22:45:08 +0000 (UTC) Cc: D Goel , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 07 00:44:58 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E1XOu-0007y2-Qv for ged-emacs-devel@m.gmane.org; Sun, 07 Aug 2005 00:44:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E1XRq-0001Kx-9l for ged-emacs-devel@m.gmane.org; Sat, 06 Aug 2005 18:47:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E1XMQ-0006Gi-GT for emacs-devel@gnu.org; Sat, 06 Aug 2005 18:41:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E1XMN-0006D9-E6 for emacs-devel@gnu.org; Sat, 06 Aug 2005 18:41:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E1XMN-00068E-2D for emacs-devel@gnu.org; Sat, 06 Aug 2005 18:41:43 -0400 Original-Received: from [207.245.121.138] (helo=mail.agora-net.com) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_ARCFOUR_SHA:16) (Exim 4.34) id 1E1XUE-0002gr-4h; Sat, 06 Aug 2005 18:49:50 -0400 Original-Received: from ttn by mail.agora-net.com with local (Exim 4.34) id 1E1XGt-0003v5-D7; Sat, 06 Aug 2005 18:36:03 -0400 Original-To: rms@gnu.org In-Reply-To: Original-Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:41627 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41627 "Richard M. Stallman" writes: > The comment suggests this was for compatibility with Common Lisp. > We may as well not change it. i changed `Fexpt' so that: (expt 2 -2) => 0.25 i'm inclined to leave the change in for (more) mathematical correctness, and also because w/ the change, the behavior concords w/ the elisp info page which says: @defun expt x y This function returns @var{x} raised to power @var{y}. If both arguments are integers and @var{y} is positive, the result is an integer; in this case, overflow causes truncation, so watch out. @end defun if someone complains, we can always revert it (and update the docs to mention the (IMHO) strange behavior). thi