Re: comparing doubles for equality
- From: "Phlip" <phlipcpp@xxxxxxxxx>
- Date: Sun, 29 Apr 2007 20:36:14 GMT
Richard Weeks wrote:
#define MAXRELDIFF .000000000001
Google for "epsilon", in context; that's the (arbitrary) math term for the
tolerance amount.
And consider recasting the higher-level code to always compare with < and >.
--
Phlip
http://flea.sourceforge.net/PiglegToo_1.html
.
- References:
- comparing doubles for equality
- From: Richard Weeks
- comparing doubles for equality
- Prev by Date: Re: comparing doubles for equality
- Next by Date: Re: comparing doubles for equality
- Previous by thread: Re: comparing doubles for equality
- Next by thread: Re: comparing doubles for equality
- Index(es):