chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] mathematical oddities


From: Felix
Subject: Re: [Chicken-users] mathematical oddities
Date: Fri, 16 Jul 2010 08:07:39 +0200 (CEST)

From: Shawn Rutledge <address@hidden>
Subject: Re: [Chicken-users] mathematical oddities
Date: Thu, 15 Jul 2010 11:49:34 -0700

> 
> Well if you think it will always be only that arithmetic error, I
> guess that's good enough for me to write a division operator which
> returns infinity if I ever need to.  But it would be less efficient.
> Do you have to detect the infinity in order to turn it into a
> condition?  Maybe that behavior could be switched off, or expose a
> lower-level division operation so that getting the infinite result is
> just a matter of redefining the operator to make use of the other
> division operation.

The check for zero is done before the division takes place.


cheers,
felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]