[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fix for inconsistent (/ DIVIDEND DIVISOR &rest DIVISORS)
From: |
David Kastrup |
Subject: |
Re: Fix for inconsistent (/ DIVIDEND DIVISOR &rest DIVISORS) |
Date: |
05 May 2004 01:50:00 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Peter Whaite <address@hidden> writes:
> Miles Bader <address@hidden> 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