Subject: Re: accuracy of "long double"
To: None <10.50@free.fr>
From: Neil Booth <neil@daikokuya.co.uk>
List: tech-toolchain
Date: 08/30/2007 07:36:09
Neil Booth wrote:-

> Yes.  You can test this yourself of course:
> 
> #include <float.h>
> 
> volatile double y = DBL_EPSILON;
> volatile long double z = LDBL_EPSILON;
> 
> int main (void)
> {
>   return (z > 0 && z + 1 == 1
> 	  && y > 0 && y + 1 != 1);
> }

Of course, I now realize the volatiles aren't necessary above.

Neil.