[Haskell-cafe] Re: QuickCheck: test passes in GHCi,
fails when compiled
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Wed Jan 13 05:21:43 EST 2010
On Jan 13, 2010, at 05:07 , Lauri Pesonen wrote:
> I expect this to be a known issue with floats. Sorry for the noise.
Yep. There's a faction that wants Float and Double to not be in the
Eq typeclass, because floating point calculations can never reliably
be compared for equality. (There are some "infinite precision float"
packages out there, but transcendentals will still get you in trouble
even if repeating decimals don't.)
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20100113/ce905fe8/PGP.bin
More information about the Haskell-Cafe
mailing list