GCC error ?

Hans-Joachim.Schmidt@bmf.bund.de Hans-Joachim.Schmidt@bmf.bund.de
Fri Jun 7 00:54:00 GMT 2002


Hello,

there is a problem when I compute:
   
   double x,y,d,e;
   
   x=112.7; 
   y=120.0;

   d=x/y-1;
   e=x/y;  e--;

   d=0x1.70a3d70a3d711p-6    (output of %a format)
   e=0x1.70a3d70a3d700p-6

   and
   d-e=0x1.1000000000000p-54


Does the output of 'd' and 'e' (in %a format) show that there is more than 1
bit difference ?

We use SuSE Linux 8.0 (i386) - Kernel 2.4.18-64GB-SMP on a Pentium III
(Coppermine).


Best regards

   Achim Schmidt 

 <<comp_diff.c>> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: comp_diff.c
Type: application/octet-stream
Size: 313 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20020607/6ccb19e7/attachment.obj>


More information about the Gcc mailing list