On Thu, Jan 10, 2008 at 09:24:34PM +0100, Achim Schneider wrote:
> John Meacham <[EMAIL PROTECTED]> wrote:
> > On Thu, Jan 10, 2008 at 11:17:18AM +0200, Yitzchak Gale wrote:
> > > The special case of 1/0 is less clear, though. One might
> > > decide that it should be an error rather than NaN, as some
> > > languages have.
> > 
> > It is neither, 
> > 
> > 1/0 = Infinity
> > -1/0 = -Infinity
>
> Just out of curiosity:
> 
> 1/-0 = -Infinity?
> -1/-0 = Infinity?

Yes.  (You could have tried this for yourself, you know... but I suppose
haskell-cafe isn't a bad interactive Haskell interpreter, perhaps more user
friendly than ghci.)
-- 
David Roundy
Department of Physics
Oregon State University
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to