[Haskell-cafe] smallest double eps

Tamas K Papp tpapp at Princeton.EDU
Fri Sep 29 19:30:22 EDT 2006


Hi,

Is there a built-in constant in Haskell (or, if it is
compiler-specific, in ghc) that gives the smallest positive floating
point number x such that 1+x /= x?  Some languages refer to that as
double.eps or similar.  I need it for numeric algorithms.

Thanks,

Tamas


More information about the Haskell-Cafe mailing list