Floating point numbers

From HaskellWiki

Question[edit]

Why do floating point numbers behave so strange? Why is

Prelude> compare (0/0) (0/0)
GT
Prelude> (0/0) > (0/0)
False

?

Answer[edit]

This has nothing to do with Haskell, but exclusively with the underlying implementation of floating point numbers in your system.

See for instance: