
13 Jan
2010
13 Jan
'10
5:21 a.m.
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@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH