[Scheme-reports] Division by zero Peter Bex (24 Aug 2011 18:16 UTC)
Re: [Scheme-reports] Division by zero John Cowan (24 Aug 2011 22:57 UTC)

[Scheme-reports] Division by zero Peter Bex 24 Aug 2011 18:16 UTC

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@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports