Re: Machine epsilon: conclusion



jacob navia said:

Richard Heathfield wrote:
jacob navia said:

<snip>

For the different representations we have in the standard header
<float.h>:

#define FLT_EPSILON 1.19209290e-07F // float
#define DBL_EPSILON 2.2204460492503131e-16 // double
#define LDBL_EPSILON 1.084202172485504434007452e-19L //long double
// qfloat epsilon truncated so that it fits in this page...
#define QFLT_EPSILON 1.09003771904865842969737513593110651 ... E-106

You have the same bug as last time. No standard-conforming
implementation may define QFLT_EPSILON in the standard header
<float.h>, as I pointed out to you earlier this week.


I have told you thousand times that this can be disabled
by using -ansic.

You don't seem to understand my point, which is that you are describing
<float.h> as a *standard header*, and yet you *also* describe it as
containing QFLT_EPSILON. It can't *both* be a standard header *and*
contain QFLT_EPSILON at the same time. If it is a standard header, it
does not contain QFLT_EPSILON. If it contains QFLT_EPSILON, it is not a
standard header. Your claim that QFLT_EPSILON is in a standard header
is simply wrong, switch or no switch.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.



Relevant Pages

  • Re: Key switch and other issues
    ... The reason I ask is I recently bought what was supposedly a 69 standard ... Another problem with the switch is when ya pull the key out ... The wiring is butchered too. ... This bug has other issues so more questions may follow. ...
    (rec.autos.makers.vw.aircooled)
  • Re: How to print " " or
    ... multiple reasons for a particular viewpoint; ... I pointed out a section of the C89 standard that overrides ... intermediate format and that format loaded in when the standard header ...
    (comp.lang.c)
  • Re: iostream and getline
    ... Because the original question was about C++, not Windows programming, ... ignoring that since they are not standard and not topical in comp.lang.c++. ... This is not a standard header. ... ostream is undeclared. ...
    (comp.lang.cpp)
  • Re: Machine epsilon: conclusion
    ... implementation of which is neither here nor there, as the Standard ... A standard header *MUST NOT* contain a definition ... If the compiler is not invoked in a conforming mode, ...
    (comp.lang.c)
  • Re: Automatically generate variables
    ... standard include file it is allowed to act accordingly. ... > found in that search should it use the standard header. ... It'd be not so nice if this "useful programming practice" actually ... > Unless #include "stdio.h" triggers the undefined behavior. ...
    (comp.lang.c)