Re: How to overload == for System.Double

Stoyan Damov <[email protected]> Fri, 2 Feb 2007 17:56:07 +0200
Newsgroups gmane.comp.windows.devel.dotnet.cx
Message-ID <[email protected]>
On 2/2/07, Stoyan Damov <[email protected]> wrote:
> On 2/2/07, Alan Baljeu <[email protected]> wrote:
> > On some architectures, the same float can have different representations, and similar floats
> > can have quite different representations.  Given that, is this implementation totally
> > reliable, and has it been seriously tested?  Besides that, is it really much better than
> > Math.Abs(a-b) < 1e-6 (or whatever tolerance you want to apply)?
> >
>
> FYI, there are Double.Epsilon and Single.Epsilon fields re tollerance.
>
> Cheers
>

s/fields/constants/

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com