This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Bizarre output.
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Antonio Coralles <noche dot suapie at reflex dot at>, gcc-help at gcc dot gnu dot org
- Date: Tue, 29 Mar 2005 19:00:49 -0600
- Subject: Re: Bizarre output.
- References: <fc.3b9aca006b2d42243b9aca0024422d6b.428315a@reflex.at><4249D2EA.4080500@reflex.at><fc.3b9aca00f5c969e73b9aca0024422d6b.428332a@reflex.at><4249E1DF.9090300@reflex.at><fc.3b9aca00d11535353b9aca0024422d6b.42838a3@reflex.at><4249E5E3.5020903@reflex.at>
Hi Antonio,
>Hmm, maybe i understood something wrong, but didn't corey mean that his function double eps(double a, double b) calculates a magnitude based epsilon from fuzzyEpsilon and a ?
The definition of "close enough" can vary by the problem being considered. As such, there are several strategies (algorithms) one can employ to determine if a float or double is "close enough" to a given value.
My usual suggestion is "Use integers unless you can't."
>By the way, something completely differnet: What means HTH ?
HTH - hope that helps
--Eljay