[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Scheme-reports] Division by zero
Hi all,
Still working on numbers stuff for Chicken, I found that the division
procedures (at least "/", maybe others) do not mention what happens
when dividing by zero. It would be a good thing to specify whether
it should error or not, (and also if this should happen for inexacts
or not!)
For the floor/ ... euclidian-remainder, the document mentions that
n2 *should not be* 0, but it doesn't really say what happens when it is.
Since the standard now knows about exceptions, why not specify that an
exception should be signaled?
Cheers,
Peter
--
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
is especially attractive, not only because it can be economically
and scientifically rewarding, but also because it can be an aesthetic
experience much like composing poetry or music."
-- Donald Knuth
_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports