From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Fix for inconsistent (/ DIVIDEND DIVISOR &rest DIVISORS) Date: 05 May 2004 01:50:00 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200405042321.i44NLbMW009986@brains.moreideas.ca> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083715292 29067 80.91.224.253 (5 May 2004 00:01:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 May 2004 00:01:32 +0000 (UTC) Cc: emacs-devel@gnu.org, Miles Bader Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed May 05 02:01:26 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BL9qo-0001Jw-00 for ; Wed, 05 May 2004 02:01:26 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BL9qn-0004xf-00 for ; Wed, 05 May 2004 02:01:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BL9i7-0003Ab-Tj for emacs-devel@quimby.gnus.org; Tue, 04 May 2004 19:52:27 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BL9gM-0002tG-1E for emacs-devel@gnu.org; Tue, 04 May 2004 19:50:38 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BL9fm-0002c8-Ub for emacs-devel@gnu.org; Tue, 04 May 2004 19:50:34 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BL9fm-0002bb-Aj for emacs-devel@gnu.org; Tue, 04 May 2004 19:50:02 -0400 Original-Received: from fencepost.gnu.org ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.24) id 1BL9fl-0000Dj-Fg; Tue, 04 May 2004 19:50:01 -0400 Original-To: Peter Whaite In-Reply-To: <200405042321.i44NLbMW009986@brains.moreideas.ca> Original-Lines: 20 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 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:22779 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22779 Peter Whaite writes: > Miles Bader wrote: > > > On Tue, May 04, 2004 at 06:27:11PM -0400, Peter Whaite wrote: > > > Some time ago there was a thread on division being inconsistent when > > > floats were involved. I dont know what the outcome of that discussion > > > was, but it did occur to me that the simplest fix would be to multiply > > > the divisors before doing the division. > > > > That might result in overflow where there wasn't any before, especially when > > all the args are fixnums. > > Oh you're right and it isn't the first time I've fallen for that one. I > was fixated on floats. Floats also overflow, merely later. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum