This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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>>
Attachment:
comp_diff.c
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |