From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Whaite Newsgroups: gmane.emacs.devel Subject: Re: Fix for inconsistent (/ DIVIDEND DIVISOR &rest DIVISORS) Date: Tue, 04 May 2004 19:21:36 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200405042321.i44NLbMW009986@brains.moreideas.ca> References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1083713613 26428 80.91.224.253 (4 May 2004 23:33:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 May 2004 23:33:33 +0000 (UTC) Cc: Peter Whaite , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed May 05 01:33: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 1BL9Pi-0000Fp-00 for ; Wed, 05 May 2004 01:33: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 1BL9Pi-0004T2-00 for ; Wed, 05 May 2004 01:33:26 +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 1BL9HP-000280-7T for emacs-devel@quimby.gnus.org; Tue, 04 May 2004 19:24:51 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BL9G4-0001tY-Os for emacs-devel@gnu.org; Tue, 04 May 2004 19:23:28 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BL9FT-0001gb-4k for emacs-devel@gnu.org; Tue, 04 May 2004 19:23:23 -0400 Original-Received: from [199.185.220.220] (helo=priv-edtnes57.telusplanet.net) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BL9Ew-0001ZA-2Y; Tue, 04 May 2004 19:22:18 -0400 Original-Received: from brains.moreideas.ca ([142.169.171.175]) by priv-edtnes57.telusplanet.net (InterMail vM.6.00.05.02 201-2115-109-103-20031105) with ESMTP id <20040504232216.YQUF15682.priv-edtnes57.telusplanet.net@brains.moreideas.ca>; Tue, 4 May 2004 17:22:16 -0600 Original-Received: from brains.moreideas.ca (localhost.localdomain [127.0.0.1]) by brains.moreideas.ca (8.12.8/8.12.8) with ESMTP id i44NLbI6009991; Tue, 4 May 2004 19:21:37 -0400 Original-Received: from brains.moreideas.ca (peta@localhost) by brains.moreideas.ca (8.12.8/8.12.8/Submit) with ESMTP id i44NLbMW009986; Tue, 4 May 2004 19:21:37 -0400 Original-To: Miles Bader In-Reply-To: Message from Miles Bader of "Tue, 04 May 2004 18:51:31 EDT." <20040504225131.GA16973@fencepost> X-Mailer: MH-E 7.4.3+cvs; nmh 1.0.4; GNU Emacs 21.3.50.41 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:22773 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22773 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. -- Peter Whaite (http://whaite.ca)