Re: Dividing by zero and floating-point infinity

2008-11-20 Thread Raffael Cavallaro
On Nov 20, 10:23 am, "Mark H." <[EMAIL PROTECTED]> wrote: > I can't speak from Rich but I've noticed this behavior in other Lisp > implementations (like SBCL) that are built on C.  The Lisp > implementation changes the semantics of floating-point divide-by- > zero.  (The ANSI Common Lisp standa

Re: Dividing by zero and floating-point infinity

2008-11-20 Thread Mark H.
On Nov 19, 1:10 pm, samppi <[EMAIL PROTECTED]> wrote: > I am not familiar with how Java's arithmetic works, but it seems > fromhttp://hanuska.blogspot.com/2007/08/arithmeticexception-vs-nan.html > andhttp://www.concentric.net/~Ttwang/tech/javafloat.htmthat dividing > a double or float by 0 should

Dividing by zero and floating-point infinity

2008-11-19 Thread samppi
I am not familiar with how Java's arithmetic works, but it seems from http://hanuska.blogspot.com/2007/08/arithmeticexception-vs-nan.html and http://www.concentric.net/~Ttwang/tech/javafloat.htm that dividing a double or float by 0 should result in positive or negative infinity (like Double.POSITI