--- On Thu, 4/8/10, Gregory Crosswhite <[email protected]> wrote:

> From: Gregory Crosswhite <[email protected]>

> 
> On a tangental note, I've considered coding up a package
> with an "AlmostEq" typeclass that allows one to test for
> approximate equality.  The problem is that different
> situations call for different tolerances so there is no
> standard "approximate equal" operator that would work for
> everyone, but there might be a tolerance that is "good
> enough" for most situations where it would be needed (such
> as using QuickCheck to test that two different
> floating-point functions that are supposed to return the
> same answer actually do so) to make it worthwhile to have a
> standard package for this around for the sake of
> convenience.
> 
> Anyone have any thoughts on this?
> 

It's always worth pointing out

http://docs.sun.com/source/806-3568/ncg_goldberg.html

at this point (not that it really helps you out in this case)

Doug


 
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to