chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] CR: Division by inexact zero should return infinit


From: Felix
Subject: Re: [Chicken-hackers] CR: Division by inexact zero should return infinity/nan
Date: Thu, 25 Aug 2011 03:50:40 -0400 (EDT)

> This is really annoying, as you'd get "random" errors when you're working
> with numbers in the extreme ranges representable by flonums even if you
> absolutely know you're dividing by nonzero values.

Yes, that's floating point.

> 
> All other Schemes I tested with (Guile, Gauche, Scheme48, Racket and Gambit)
> return +inf.0 for (/ 1.0 0.0) and -inf.0 for (/ -1.0 0.0).
> They return +nan.0 for (/ 0.0 0.0).  Extra data points would be welcome.

CL signals div-by-zero.


cheers,
felix



reply via email to

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