Re: SameValue function -- how to speed up?

From: John Herbster (herb-sci1_AT_sbcglobal.net)
Date: 09/10/04


Date: Thu, 9 Sep 2004 17:30:07 -0500


> To check if the efficiency score is equal
> to one, I use SameValue(const E-score,1,epsilon),
> where epsilon is a very small number, maybe
> 0.000000001. The reason is to be sure that the
> floating point (double) comparisons do not miss
> if I use the simpler if E-score = 1.

Dag, Then for this special case I suggest that you code
your own comparison instead of using SameValue.
Maybe like
  If abs(E_Score - 1) < 1E-9 then ...
Regards, JohnH



Relevant Pages

  • Re: SameValue function -- how to speed up?
    ... Dag, ... To wit, ... if Epsilon = 0 then ... May ask what you are using the SameValue function for? ...
    (borland.public.delphi.language.basm)
  • SameValue function -- how to speed up?
    ... I use the function "SameValue" a lot. ... if Epsilon = 0 then ... found in the Math unit. ...
    (borland.public.delphi.language.basm)
  • Re: Fedora Extras is extra
    ... >>For me there's no reason to be incompatible. ... I am using kde-redhat, dag and freshrpms, and it ... there was a tiny issue with redhat-menus recently ...
    (Fedora)
  • Re: Outlook2003 and Outlook2007
    ... Dag N schrieb: ... During installatiioni, ... You can have different versions of the other Office programs, but not of Outlook. ... I don't understand the reason. ...
    (microsoft.public.office.setup)
  • Re: Any word on Epsilon/Emacs key bindings?
    ... > A serious omission from VS.NET: Epsilon keybindings were the reason ... > that a lot of programmers did not move to VS.NET. ...
    (microsoft.public.vsnet.ide)