[Haskell-cafe] 0/0 > 1 == False

John Meacham john at repetae.net
Thu Jan 10 15:16:13 EST 2008


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

At least on IEEE style floating point systems. (this isn't mandated by
the haskell standard though I believe)


        John

-- 
John Meacham - ⑆repetae.net⑆john⑈


More information about the Haskell-Cafe mailing list